fixed some incorrect routes

This commit is contained in:
2026-06-02 00:17:04 +01:00
parent 63ca617895
commit 736edee1b0
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ router.post(`${config.site_path}/submit_post`, (req,res) => {
fs.writeFileSync(`../data/posts.json`, `${JSON.stringify(posts)}`, 'utf-8');
comments.push({'id': id, 'comments': []})
fs.writeFileSync(`../data/comments.json`, `${JSON.stringify(comments)}`)
res.redirect(302, `/post/${id}`);
res.redirect(302, `${config.sitr_path}/post/${id}`);
}
else {
res.render("partials/message", {