dev #160
@ -5,12 +5,12 @@ import fastify_view from '@fastify/view';
|
|||||||
import pug from 'pug'
|
import pug from 'pug'
|
||||||
import { join as pathJoin } from "path";
|
import { join as pathJoin } from "path";
|
||||||
|
|
||||||
import api from "./api"
|
import api from "./router/api"
|
||||||
|
|
||||||
const server = fastify(); //{ logger: true });
|
const server = fastify(); //{ logger: true });
|
||||||
|
|
||||||
server.register(fastify_static, {
|
server.register(fastify_static, {
|
||||||
root: pathJoin(__dirname, "public"),
|
root: pathJoin(__dirname, "../public"),
|
||||||
prefix: "/public/",
|
prefix: "/public/",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user