Created API and contact page templates
This commit is contained in:
@ -1,3 +1,3 @@
|
|||||||
exports.apiBrowser = function(req, res) {
|
exports.apiBrowser = function(req, res) {
|
||||||
|
res.render('api');
|
||||||
};
|
};
|
@ -1,5 +1,5 @@
|
|||||||
exports.getContact = function(req, res) {
|
exports.getContact = function(req, res) {
|
||||||
|
res.render('contact');
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.postContact = function(req, res) {
|
exports.postContact = function(req, res) {
|
||||||
|
4
views/api.jade
Normal file
4
views/api.jade
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
|
h1 API Browser
|
4
views/contact.jade
Normal file
4
views/contact.jade
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
|
h1 Contact page
|
@ -27,9 +27,9 @@ html
|
|||||||
li(class=title=='Home'?'active':undefined)
|
li(class=title=='Home'?'active':undefined)
|
||||||
a(href='/') Home
|
a(href='/') Home
|
||||||
li(class=title=='About'?'active':undefined)
|
li(class=title=='About'?'active':undefined)
|
||||||
a(href='#about') About
|
a(href='/api') API
|
||||||
li(class=title=='Contact'?'active':undefined)
|
li(class=title=='Contact'?'active':undefined)
|
||||||
a(href='#contact') Contact
|
a(href='/contact') Contact
|
||||||
ul.nav.navbar-nav.navbar-right
|
ul.nav.navbar-nav.navbar-right
|
||||||
if !user
|
if !user
|
||||||
li(class=title=='Login'?'active':undefined)
|
li(class=title=='Login'?'active':undefined)
|
||||||
|
Reference in New Issue
Block a user