mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Playlist server API
This commit is contained in:
parent
b427febb4d
commit
418d092afa
63 changed files with 2758 additions and 226 deletions
|
@ -1,7 +1,7 @@
|
|||
import * as express from 'express'
|
||||
import { CONFIG, EMBED_SIZE, PREVIEWS_SIZE } from '../initializers'
|
||||
import { asyncMiddleware, oembedValidator } from '../middlewares'
|
||||
import { accountsNameWithHostGetValidator } from '../middlewares/validators'
|
||||
import { accountNameWithHostGetValidator } from '../middlewares/validators'
|
||||
import { VideoModel } from '../models/video/video'
|
||||
|
||||
const servicesRouter = express.Router()
|
||||
|
@ -11,7 +11,7 @@ servicesRouter.use('/oembed',
|
|||
generateOEmbed
|
||||
)
|
||||
servicesRouter.use('/redirect/accounts/:accountName',
|
||||
asyncMiddleware(accountsNameWithHostGetValidator),
|
||||
asyncMiddleware(accountNameWithHostGetValidator),
|
||||
redirectToAccountUrl
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue