add static file support (quick express thing)

This commit is contained in:
hex (asiago) 2024-06-03 08:14:41 +02:00
parent 33905ce90d
commit 7796ce2d37

View file

@ -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)