import { root } from '../helpers/core-utils'
import { STATIC_MAX_AGE } from '../initializers/constants'
import { ClientHtml, sendHTML, serveIndexHTML } from '../lib/client-html'
-import { asyncMiddleware, disableRobots, embedCSP } from '../middlewares'
+import { asyncMiddleware, embedCSP } from '../middlewares'
const clientsRouter = express.Router()
'assets/images/icons/icon-96x96.png',
'assets/images/icons/icon-144x144.png',
'assets/images/icons/icon-192x192.png',
- 'assets/images/icons/icon-512x512.png'
+ 'assets/images/icons/icon-512x512.png',
+ 'assets/images/default-playlist.jpg',
+ 'assets/images/default-avatar-account.png',
+ 'assets/images/default-avatar-video-channel.png'
]
for (const staticClientOverride of staticClientOverrides) {
res.status(HttpStatusCode.NOT_FOUND_404).end()
})
-// No index exceptions
-clientsRouter.all('/about/peertube',
- disableRobots,
- asyncMiddleware(serveIndexHTML)
-)
-
// Always serve index client page (the client is a single page application, let it handle routing)
// Try to provide the right language index.html
clientsRouter.use('/(:language)?', asyncMiddleware(serveIndexHTML))