aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-04-17 00:49:04 +0200
committerRigel <sendmemail@rigelk.eu>2018-04-17 01:09:06 +0200
commit244e76a552ef05a5067134b1065d26dd89246d8c (patch)
treea15fcd52bce99797fc9366572fea62a7a44aaabe /server.ts
parentc36d5a6b98056ef7fec3db43fbee880ee7332dcf (diff)
downloadPeerTube-244e76a552ef05a5067134b1065d26dd89246d8c.tar.gz
PeerTube-244e76a552ef05a5067134b1065d26dd89246d8c.tar.zst
PeerTube-244e76a552ef05a5067134b1065d26dd89246d8c.zip
feature: initial syndication feeds support
Provides rss 2.0, atom 1.0 and json 1.0 feeds for videos (instance and account-wide) on listings and video-watch views. * still lacks redis caching * still lacks lastBuildDate support * still lacks channel-wide support * still lacks semantic annotation (for licenses, NSFW warnings, etc.) * still lacks love ( ˘ ³˘) * RSS: has MRSS support for torrent lists! * RSS: includes the first torrent in an enclosure * JSON: lists all torrents in the 'attachments' object * ATOM: lacking torrent listing support Advances #23 Partial implementation for the accountId generation in the client, which will need a hotfix to add a way to get the proper account id.
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index 97941c958..06d575c86 100644
--- a/server.ts
+++ b/server.ts
@@ -69,7 +69,15 @@ import { installApplication } from './server/initializers'
69import { Emailer } from './server/lib/emailer' 69import { Emailer } from './server/lib/emailer'
70import { JobQueue } from './server/lib/job-queue' 70import { JobQueue } from './server/lib/job-queue'
71import { VideosPreviewCache } from './server/lib/cache' 71import { VideosPreviewCache } from './server/lib/cache'
72import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' 72import {
73 activityPubRouter,
74 apiRouter,
75 clientsRouter,
76 feedsRouter,
77 staticRouter,
78 servicesRouter,
79 webfingerRouter
80} from './server/controllers'
73import { Redis } from './server/lib/redis' 81import { Redis } from './server/lib/redis'
74import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' 82import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler'
75import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' 83import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler'
@@ -144,8 +152,9 @@ app.use(apiRoute, apiRouter)
144// Services (oembed...) 152// Services (oembed...)
145app.use('/services', servicesRouter) 153app.use('/services', servicesRouter)
146 154
147app.use('/', webfingerRouter)
148app.use('/', activityPubRouter) 155app.use('/', activityPubRouter)
156app.use('/', feedsRouter)
157app.use('/', webfingerRouter)
149 158
150// Client files 159// Client files
151app.use('/', clientsRouter) 160app.use('/', clientsRouter)