This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.js
62 lines (61 loc) · 1.71 KB
/
render.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var controller = require('./controllers/controller');
module.exports = {
"routers": {
"index": {
"title": "Leukemia",
"tabs": [
"About",
"Health Policies & Tech",
"Connections",
"References"
],
"tab_focus": "Focus",
"footbar": true,
"hero": {
"src": "/assets/images/city.jpg",
"alt": "An iamge of a bustling city."
},
"content": {
"layers": []
},
"css": [],
"js": []
},
"test": {
"title": "Leukemia",
"tabs": [
"About",
"Health Policies & Tech",
"Connections",
"References"
],
"tab_focus": "Focus",
"footbar": true,
"hero": {
"src": "/assets/images/city.jpg",
"alt": "An iamge of a bustling city."
},
"content": {
"layers": []
},
"css": [],
"js": []
},
"api-contact-list": function(app) {
app.get(controller.getContacts) // GET endpoint
.post(controller.addNewContact); // POST endpoint
},
"api-contact-details-by-id": function(app) {
// Contact detail
app.get(controller.getContactWithID)
.put(controller.updateContact)
.delete(controller.deleteContact);
}
},
"routes": {
"/": "index",
"/test": "test",
"/api/contact": "api-contact-list",
"/api/contact/:contactId": "api-contact-details-by-id"
}
};