This commit is contained in:
@@ -20,10 +20,7 @@ fastify.register(require('fastify-leveldb'), {
|
||||
fastify.get('/', (req, reply) => {
|
||||
reply.sendFile('/template/home.html');
|
||||
});
|
||||
|
||||
fastify.get('/dbg', (req, reply) => {
|
||||
reply.sendFile('/template/templates.html');
|
||||
});
|
||||
fastify.register(require('./router/api'), { prefix: '/api' });
|
||||
|
||||
fastify.get('/:id', (req, reply) => {
|
||||
try{
|
||||
@@ -49,7 +46,6 @@ fastify.get('/:id', (req, reply) => {
|
||||
});
|
||||
|
||||
|
||||
fastify.register(require('./router/api'), { prefix: '/api' });
|
||||
|
||||
|
||||
fastify.listen(8080,'0.0.0.0' ,(err,address) => {
|
||||
|
Reference in New Issue
Block a user