cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-16 16:54:31 +02:00
parent d64c4ad26f
commit a7b21906ba
3 changed files with 324 additions and 244 deletions

View File

@@ -16,9 +16,7 @@ fastify.register(require('fastify-leveldb'), {
fastify.get('/', (req, reply) => {
reply.sendFile('/template/home.html');
});
fastify.get('/', (req, reply) => reply.sendFile('/template/home.html'));
fastify.register(require('./router/api'), { prefix: '/api' });
fastify.get('/:id', (req, reply) => {
@@ -43,6 +41,7 @@ fastify.get('/:id', (req, reply) => {
reply.sendFile('/template/journey.html');
}
});
fastify.get('/view/:id', (req, reply) => reply.sendFile('/template/journey.html'));