mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
* chore: configure project-wide linting and formatting * chore: run lint autofix and formatter
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
import restana from 'restana';
|
|
import { config } from '../../utils.js';
|
|
const service = restana();
|
|
const demoRouter = service.newRouter();
|
|
|
|
demoRouter.get('/', async (req, res) => {
|
|
res.body = Object.assign({}, { demoMode: config.demoMode });
|
|
res.send();
|
|
});
|
|
|
|
export { demoRouter };
|