otel: mount otel/routes before the blog /:slug catch-all in serve.sh
The blog post-detail route /:slug matches any single segment, so /otel was being served as a missing blog slug (404). Order otel/routes ahead of the blog routes so the literal /otel + /otel/stream match first.
This commit is contained in:
@@ -195,5 +195,5 @@ EPOCH=1
|
||||
# middleware, so a browser logs in then publishes. The bearer resolver is a stub
|
||||
# (no API tokens configured) — browser session is the live auth path for now.
|
||||
# blog-routes LAST — its GET /:slug catch-all must not shadow the rest.
|
||||
echo "(eval \"(host/serve $PORT (list host/static-routes host/feed-routes host/relations-routes (host/blog-write-routes (fn (tok) nil)) host/blog-routes otel/routes))\")"
|
||||
echo "(eval \"(host/serve $PORT (list host/static-routes otel/routes host/feed-routes host/relations-routes (host/blog-write-routes (fn (tok) nil)) host/blog-routes))\")"
|
||||
} | exec "$SX_SERVER"
|
||||
|
||||
Reference in New Issue
Block a user