fixed some incorrect routes
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user