Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Lundin
cmdb
Commits
40d82e3d
Commit
40d82e3d
authored
Dec 20, 2017
by
a001188
Browse files
Some functions work
parent
7c0ac8b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
app.js
View file @
40d82e3d
...
...
@@ -14,7 +14,7 @@ var organisation = require('./routes/organisation');
var
structure
=
require
(
'
./routes/structure
'
);
var
users
=
require
(
'
./routes/users
'
);
var
app
=
express
();
const
winston
=
require
(
'
winston
'
)
// view engine setup
app
.
set
(
'
views
'
,
path
.
join
(
__dirname
,
'
views
'
));
app
.
set
(
'
view engine
'
,
'
pug
'
);
...
...
routes/index.js
View file @
40d82e3d
...
...
@@ -9,6 +9,9 @@ const connectionString = process.env.DATABASE_URL || 'postgres://jasper:a001188@
/* GET home page. */
router
.
get
(
'
/
'
,
function
(
req
,
res
,
next
)
{
winston
.
log
(
'
info
'
,
'
Hello log files!
'
,
{
someKey
:
'
some-value
'
});
res
.
render
(
'
index
'
,
{
title
:
'
Hem
'
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment