Commit b75385a0 authored by Clement Brizard's avatar Clement Brizard
Browse files

feat: add routes file for meeting

parent 1a9bfcdb
...@@ -10,6 +10,7 @@ const cookieParser = require('cookie-parser') ...@@ -10,6 +10,7 @@ const cookieParser = require('cookie-parser')
const logger = require('morgan') const logger = require('morgan')
const indexRouter = require('./controllers/routes') const indexRouter = require('./controllers/routes')
const meetingRouter = require('./controllers/routes/meeting')
const app = express() const app = express()
...@@ -49,6 +50,7 @@ app.use(cookieParser()) ...@@ -49,6 +50,7 @@ app.use(cookieParser())
app.use(express.static(path.join(__dirname, 'public'))) app.use(express.static(path.join(__dirname, 'public')))
app.use('/', indexRouter) app.use('/', indexRouter)
app.use('/reunion', meetingRouter)
// catch 404 and forward to error handler // catch 404 and forward to error handler
app.use(function (req, res, next) { app.use(function (req, res, next) {
......
'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
<!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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment