fix(proxy): remove velxio compile route conflict in tailscale serve config
This commit is contained in:
parent
f12014a331
commit
e6507542ea
|
|
@ -13,12 +13,6 @@
|
|||
"/assets/": {
|
||||
"Proxy": "http://127.0.0.1:5000/assets/"
|
||||
},
|
||||
"/velxio/api/compile/": {
|
||||
"Proxy": "http://127.0.0.1:5000/velxio-compile/"
|
||||
},
|
||||
"/velxio/api/compile": {
|
||||
"Proxy": "http://127.0.0.1:5000/velxio-compile"
|
||||
},
|
||||
"/velxio/": {
|
||||
"Proxy": "__VELXIO_PROXY_TARGET__"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ The backend is built with Flask, providing API endpoints for the SvelteKit front
|
|||
### Compilation (`routes/compile.py`)
|
||||
- `def compile_code():` (POST `/compile`)
|
||||
Accepts `code` and `language`. Routes execution to the sandboxed worker using the `CompilerFactory`. Incorporates rate-limiting for anonymous users.
|
||||
- `def velxio_compile():` (POST `/velxio-compile` mapped from `/velxio/api/compile`)
|
||||
- `def velxio_compile():` (POST `/velxio-compile` mapped from `/api/velxio-compile`)
|
||||
A proxy endpoint that forwards Arduino compilation requests to the Velxio container, enforcing rate limits for anonymous users.
|
||||
|
||||
### Progress Tracking (`routes/progress.py`)
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ Semua endpoint Flask diakses via SvelteKit proxy (`/api/*` → Flask `:5000`, pr
|
|||
| GET | `/api/lesson/<slug>.json` | `/lesson/<slug>.json` | Data lesson lengkap |
|
||||
| GET | `/api/get-key-text/<slug>` | `/get-key-text/<slug>` | Key text untuk lesson |
|
||||
| POST | `/api/compile` | `/compile` | Compile & run kode (C/Python) via worker |
|
||||
| POST | `/velxio/api/compile` | `/velxio-compile` | **Rate-limited** Arduino compile proxy |
|
||||
| POST | `/api/velxio-compile` | `/velxio-compile` | **Rate-limited** Arduino compile proxy |
|
||||
| POST | `/api/track-progress` | `/track-progress` | Track progress siswa |
|
||||
| GET | `/api/progress-report.json` | `/progress-report.json` | Data progress semua siswa |
|
||||
| GET | `/api/progress-report/export-csv` | `/progress-report/export-csv` | Export CSV |
|
||||
|
|
|
|||
Loading…
Reference in New Issue