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