add static file support (quick express thing)
This commit is contained in:
parent
33905ce90d
commit
7796ce2d37
1 changed files with 2 additions and 0 deletions
|
@ -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})
|
res.render(`post`, {posts: posts, post: post[0], config: config})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.use('/static', express.static(path.join(__dirname, '../', 'data',"static")))
|
||||||
|
|
||||||
app.listen(3024)
|
app.listen(3024)
|
||||||
|
|
Loading…
Reference in a new issue