Changeset 0b7ebbf in Klonkt for src/server.js
- Timestamp:
- 06/16/2026 01:12:00 AM (3 months ago)
- Branches:
- main
- Children:
- 57929aa
- Parents:
- 63edb0d (diff), efdde37 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/server.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/server.js
r63edb0d r0b7ebbf 43 43 import artistsRoutes from './routes/artists.js'; 44 44 import postsRoutes from './routes/posts.js'; 45 import federationRoutes from './routes/federation.js'; 46 import { startCircleSyncLoop } from './services/CircleService.js'; 47 import adminCircleRoutes from './routes/admin-circle.js'; 48 import circleRoutes from './routes/circle.js'; 45 49 46 50 if (!process.env.SESSION_SECRET) { … … 145 149 initializeDatabase(); 146 150 151 // Cirkels: periodieke achtergrond-sync van remote instances (no-op tenzij tenancy='circle'). 152 startCircleSyncLoop(); 153 147 154 // Bundle HTMX: copy from node_modules into our own assets dir so we can serve 148 155 // it locally (no third-party CDN). Idempotent — only copies if size differs. … … 165 172 const prutter = new PrutterService(db); 166 173 app.locals.prutter = prutter; 174 175 // Cirkels-federatie: publieke, site-agnostische endpoints (/.klonkt/*). 176 // Vóór resolveSite/theme — ze hebben geen site-context nodig. 177 app.use(federationRoutes); 167 178 168 179 app.use(resolveSite); … … 216 227 app.use('/admin/comments', adminCommentsRoutes); 217 228 app.use('/admin/settings', adminSettingsRoutes); 229 app.use('/admin/circle', adminCircleRoutes); 218 230 app.use('/admin', adminRoutes); 219 231 app.use('/prutter', prutterRoutes); … … 229 241 app.get('/artiesten', (req, res) => res.redirect(301, req.originalUrl.replace(/^\/artiesten/, '/leden'))); // oude URL -> /leden 230 242 app.use('/', hubRoutes); // hub-overview op '/' (solo: next() -> postsRoutes) 243 app.use('/', circleRoutes); // /cirkel-feed (solo/hub: next() -> postsRoutes) 231 244 app.use('/', postsRoutes); 232 245
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)