mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 19:33:00 +08:00
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
const SettingsService = require('../../services/settings');
|
|
|
|
router.use('/:embed', async (req, res, next) => {
|
|
switch (req.params.embed) {
|
|
case 'stream': {
|
|
const {customCssUrl} = await SettingsService.retrieve('customCssUrl');
|
|
return res.render('embed/stream', {customCssUrl});
|
|
}
|
|
}
|
|
|
|
return next();
|
|
});
|
|
|
|
module.exports = router;
|