Commit Graph
14 Commits
Author SHA1 Message Date
cupcakearmy 9e69730bfd fix: keep SPA fallback for non-api paths but 404 unmatched /api routes 2026-09-21 21:39:09 +02:00
cupcakearmy 7660dd7c30 remove uncessary commens 2026-09-21 21:18:59 +02:00
cupcakearmy 685784c360 Merge branch 'main' into fix/spa-fallback-status-code 2026-09-21 21:16:57 +02:00
cupcakearmy 4f5f829c81 test: add shared api client tests and remove dead backend code 2026-09-06 22:46:40 +02:00
Matheus Leal 8034b1a501 fix: serve SPA fallback with 200 instead of 404
`ServeDir::not_found_service` wraps the fallback in `SetStatus`, which forces
every response to `404 Not Found`. Client side routes such as `/note/<id>` and
`/about` were therefore served the correct `index.html` but with a 404 status.

Use `ServeDir::fallback` instead, which leaves the status untouched. A note that
genuinely does not exist is still reported as 404 by `/api/notes/<id>`.

Behind a reverse proxy this made effectively every document request show up as a
4xx, skewing error rate dashboards and triggering false alerts.

Fixes #217
2026-09-03 16:09:40 -03:00
cupcakearmy 062054f450 first v3 2026-07-12 11:36:01 +02:00
cupcakearmy 690b955d5d watchexec & breaking changes in axum 0.8 2026-05-31 22:55:11 +02:00
cupcakearmy 0fa5a35dae update some versions 2025-02-27 20:00:38 +01:00
cupcakearmy c13e53404c add csp draft 2025-01-17 18:48:28 +01:00
cupcakearmy ea50590532 fix: introduce locks for delete endpoint to guarantee view counter 2025-01-17 17:34:32 +01:00
cupcakearmy bd5acca97a use axum body limit 2024-08-25 22:19:41 +02:00
cupcakearmy c2b81bc04d refactor to use axum 2024-08-23 14:27:47 +02:00
cupcakearmy e2711cc887 add healthcheck endpoint and startup check 2023-06-23 10:17:13 +02:00
cupcakearmy cacb808117 restructuring (#56)
* restructuring

* pin svelte kit version & parallel execution

* update svelte kit

* correct test result assets

* add timeout

* correct locale path

* simplify crypto

* fix for #58

* add verbosity flag

* disable flaky test
2022-10-07 21:28:25 +02:00