Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tx-techno-num
impactometre
Commits
b75385a0
Commit
b75385a0
authored
Jan 27, 2020
by
Clement Brizard
Browse files
feat: add routes file for meeting
parent
1a9bfcdb
Changes
4
Hide whitespace changes
Inline
Side-by-side
app.js
View file @
b75385a0
...
...
@@ -10,6 +10,7 @@ const cookieParser = require('cookie-parser')
const
logger
=
require
(
'
morgan
'
)
const
indexRouter
=
require
(
'
./controllers/routes
'
)
const
meetingRouter
=
require
(
'
./controllers/routes/meeting
'
)
const
app
=
express
()
...
...
@@ -49,6 +50,7 @@ app.use(cookieParser())
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
'
public
'
)))
app
.
use
(
'
/
'
,
indexRouter
)
app
.
use
(
'
/reunion
'
,
meetingRouter
)
// catch 404 and forward to error handler
app
.
use
(
function
(
req
,
res
,
next
)
{
...
...
controllers/routes/meeting/index.js
0 → 100644
View file @
b75385a0
'
use strict
'
const
express
=
require
(
'
express
'
)
const
router
=
express
.
Router
()
router
.
get
(
'
/results
'
,
function
(
req
,
res
,
next
)
{
res
.
render
(
'
meeting/results
'
,
{
title
:
'
Réunions
'
})
})
module
.
exports
=
router
views/meeting/.gitkeep
deleted
100644 → 0
View file @
1a9bfcdb
views/meeting/results.ejs
0 → 100644
View file @
b75385a0
<!DOCTYPE html>
<html>
<head>
<title><
%=
title
%
></title>
<link
rel=
'stylesheet'
href=
'/stylesheets/style.css'
/>
</head>
<body>
<h1><
%=
title
%
></h1>
</body>
</html>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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