diff --git a/src/index.ts b/src/index.ts index 907e09a..dcf75b3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,4 +72,6 @@ app.use("/post/:post", async (req:express.Request,res:express.Response) => { res.render(`post`, {posts: posts, post: post[0], config: config}) }) +app.use('/static', express.static(path.join(__dirname, '../', 'data',"static"))) + app.listen(3024)