diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-04-17 00:49:04 +0200 |
---|---|---|
committer | Rigel <sendmemail@rigelk.eu> | 2018-04-17 01:09:06 +0200 |
commit | 244e76a552ef05a5067134b1065d26dd89246d8c (patch) | |
tree | a15fcd52bce99797fc9366572fea62a7a44aaabe /server.ts | |
parent | c36d5a6b98056ef7fec3db43fbee880ee7332dcf (diff) | |
download | PeerTube-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.ts | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -69,7 +69,15 @@ import { installApplication } from './server/initializers' | |||
69 | import { Emailer } from './server/lib/emailer' | 69 | import { Emailer } from './server/lib/emailer' |
70 | import { JobQueue } from './server/lib/job-queue' | 70 | import { JobQueue } from './server/lib/job-queue' |
71 | import { VideosPreviewCache } from './server/lib/cache' | 71 | import { VideosPreviewCache } from './server/lib/cache' |
72 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' | 72 | import { |
73 | activityPubRouter, | ||
74 | apiRouter, | ||
75 | clientsRouter, | ||
76 | feedsRouter, | ||
77 | staticRouter, | ||
78 | servicesRouter, | ||
79 | webfingerRouter | ||
80 | } from './server/controllers' | ||
73 | import { Redis } from './server/lib/redis' | 81 | import { Redis } from './server/lib/redis' |
74 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' | 82 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' |
75 | import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' | 83 | import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' |
@@ -144,8 +152,9 @@ app.use(apiRoute, apiRouter) | |||
144 | // Services (oembed...) | 152 | // Services (oembed...) |
145 | app.use('/services', servicesRouter) | 153 | app.use('/services', servicesRouter) |
146 | 154 | ||
147 | app.use('/', webfingerRouter) | ||
148 | app.use('/', activityPubRouter) | 155 | app.use('/', activityPubRouter) |
156 | app.use('/', feedsRouter) | ||
157 | app.use('/', webfingerRouter) | ||
149 | 158 | ||
150 | // Client files | 159 | // Client files |
151 | app.use('/', clientsRouter) | 160 | app.use('/', clientsRouter) |