-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathroutes.js
More file actions
36 lines (30 loc) · 980 Bytes
/
routes.js
File metadata and controls
36 lines (30 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var express = require('express')
var router = express.Router()
var logoList = require('./model/logo')
var doc = require('./utils/doc')
var quotesInspiration = require('./model/quotesInspiration')
var quotesCrockford = require('./model/quotesCrockford')
var quotesJokes = require('./model/quotesJokes')
router.get('/', function (req, res) {
res.render('index', {
title: 'Welcome to JavaScript 101',
message: 'We are a JavaScript meetup group in Bristol, UK.',
logoList: logoList,
quotesInspiration: quotesInspiration,
quotesCrockford: quotesCrockford,
quotesJokes: quotesJokes
})
})
router.get('/getting-started', function (req, res) {
doc.render('getting-started.md', res)
})
router.get('/getting-started/git', function (req, res) {
doc.render('git.md', res)
})
router.get('/about', function (req, res) {
doc.render('about.md', res)
})
router.get('/careers', function (req, res) {
doc.render('careers.md', res)
})
module.exports = router