/event redirect to AP repr when accept application/json

This commit is contained in:
lesion
2021-11-11 16:55:11 +01:00
parent 82c21b3255
commit 8fc0da7474
3 changed files with 35 additions and 6 deletions

View File

@@ -35,9 +35,10 @@ if (!config.firstrun) {
// rss/ics/atom feed
app.get('/feed/:type', cors(), exportController.export)
// federation api / activitypub / webfinger / nodeinfo
app.use('/.well-known', webfinger)
app.use('/event/:slug', helpers.APRedirect)
// federation api / activitypub / webfinger / nodeinfo
app.use('/federation', federation)
app.use(spamFilter)