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')
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) {
'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>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<h1><%= title %></h1>
\ No newline at end of file
Supports Markdown
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