fixed inconsistent indenting
This commit is contained in:
@@ -216,7 +216,8 @@ router.get(`${config.site_path}/search`, (req, res) => {
|
||||
console.log('searching for: ', search_term);
|
||||
const search_results = data.searchdata(search_term, search_type); // data.searchdata returns an array of search results
|
||||
|
||||
res.render('pages/search', {
|
||||
res.render('pages/search',
|
||||
{
|
||||
config,
|
||||
locale,
|
||||
search_results,
|
||||
|
||||
+4
-2
@@ -35,7 +35,8 @@ router.get(`${config.site_path}/${config.signup_url}`, (req,res) => {
|
||||
}); // /signup
|
||||
router.get(`${config.site_path}/${config.edit_account_base_url}/:user_id`, (req,res) => {
|
||||
const userID = parseInt(req.params.user_id);
|
||||
res.render("forms/edit_account", {
|
||||
res.render("forms/edit_account",
|
||||
{
|
||||
config,
|
||||
locale,
|
||||
user: data.getdata('users', 'id', userID),
|
||||
@@ -46,7 +47,8 @@ router.get(`${config.site_path}/${config.edit_post_base_url}/:post_id`, (req,res
|
||||
const postID = req.params.post_id
|
||||
const post = data.getdata('posts','id', postID)
|
||||
const user = data.getdata('users', 'id', post.userID)
|
||||
res.render("forms/edit_post", {
|
||||
res.render("forms/edit_post",
|
||||
{
|
||||
config,
|
||||
locale,
|
||||
post,
|
||||
|
||||
+1
-2
@@ -82,8 +82,7 @@ function perform_checks()
|
||||
}
|
||||
perform_checks()
|
||||
|
||||
|
||||
app.listen(config.port, () => {
|
||||
console.log(`Server is running at http://localhost:${config.port} webroot: ${config.root_path}`);
|
||||
console.log("Running in: ", __dirname)
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user