This commit is contained in:
parent
c1b1081b10
commit
567add501b
@ -7,9 +7,9 @@ const HOST = '0.0.0.0';
|
|||||||
const fastify = require('fastify')()
|
const fastify = require('fastify')()
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
// fastify.register(require('@fastify/static'), {
|
fastify.register(require('@fastify/static'), {
|
||||||
// root: path.join(__dirname),
|
root: path.join(__dirname),
|
||||||
// })
|
})
|
||||||
|
|
||||||
fastify.get('/', function (req, reply) {
|
fastify.get('/', function (req, reply) {
|
||||||
return reply.sendFile('index.html');
|
return reply.sendFile('index.html');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user