mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
robots.txt config and route
This commit is contained in:
parent
2efd32f697
commit
ac235c37e2
5 changed files with 17 additions and 2 deletions
|
@ -44,6 +44,12 @@ staticRouter.use(
|
|||
asyncMiddleware(getPreview)
|
||||
)
|
||||
|
||||
// robots.txt service
|
||||
staticRouter.get('/robots.txt', (req: express.Request, res: express.Response) => {
|
||||
res.type('text/plain')
|
||||
return res.send(CONFIG.INSTANCE.ROBOTS)
|
||||
})
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue