Changeset 89cc8c4 in Klonkt for src/server.js

Timestamp:
06/28/2026 12:03:28 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
a995698
Parents:
5b1115b
Message:

fix(fedi): turning AP off no longer 404s the whole site

The AP router is mounted at root, so its 'if (!apEnabled()) return res.status(404)' guard ran
for EVERY request and 404'd the entire site when federation was switched off. Now it uses
next('router') to skip the router so the normal routes handle the request; /ap/* still 404s
naturally when AP is off.

(No files)

Note: See TracChangeset for help on using the changeset viewer.