fix(frontend): CNB API fix

This commit is contained in:
ribardej
2025-10-30 13:23:51 +01:00
parent 14397b8a25
commit 356e1d868c
2 changed files with 4 additions and 21 deletions

View File

@@ -4,21 +4,4 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
server: {
proxy: {
// We'll proxy any request that starts with '/api-cnb'
'/api-cnb': {
// This is the real API server we want to talk to
target: 'https://api.cnb.cz',
// This is crucial: it changes the 'Origin' header
// to match the target, so the CNB server is happy.
changeOrigin: true,
// This rewrites the request path. It removes the '/api-cnb' part
// so the CNB server gets the correct path ('/cnbapi/exrates/daily...').
rewrite: (path) => path.replace(/^\/api-cnb/, ''),
},
},
},
}) })

View File

@@ -43,9 +43,9 @@ The tracker should not store the transactions in the database - security vulnera
Last 3 minutes of the meeting, summarize action items. Last 3 minutes of the meeting, summarize action items.
- [ ] Dont store data in database (security) - Load it on login (from CSAS API and local database), load automatically with email - [ ] Change the name on frontend from 7project
- [ ] Go through the checklist - [ ] Finalize the funcionality and everyting in the code part
- [ ] Look for possible APIs (like stocks or financial details whatever) - [ ] Try to finalize report with focus on reproducibility
- [ ] Report - [ ] More high level explanation of the workflow in the report
--- ---