Update src/server/main.ts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c307dd0a22
commit
dc23d5ba83
@ -5,12 +5,12 @@ import fastify_view from '@fastify/view';
|
||||
import pug from 'pug'
|
||||
import { join as pathJoin } from "path";
|
||||
|
||||
import api from "./api"
|
||||
import api from "./router/api"
|
||||
|
||||
const server = fastify(); //{ logger: true });
|
||||
|
||||
server.register(fastify_static, {
|
||||
root: pathJoin(__dirname, "public"),
|
||||
root: pathJoin(__dirname, "../public"),
|
||||
prefix: "/public/",
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user