Created API and contact page templates

This commit is contained in:
Sahat Yalkabov
2013-11-19 14:36:10 -05:00
parent cfd376c538
commit b7cba35637
5 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,3 @@
exports.apiBrowser = function(req, res) {
res.render('api');
};

View File

@ -1,5 +1,5 @@
exports.getContact = function(req, res) {
res.render('contact');
};
exports.postContact = function(req, res) {

4
views/api.jade Normal file
View File

@ -0,0 +1,4 @@
extends layout
block content
h1 API Browser

4
views/contact.jade Normal file
View File

@ -0,0 +1,4 @@
extends layout
block content
h1 Contact page

View File

@ -27,9 +27,9 @@ html
li(class=title=='Home'?'active':undefined)
a(href='/') Home
li(class=title=='About'?'active':undefined)
a(href='#about') About
a(href='/api') API
li(class=title=='Contact'?'active':undefined)
a(href='#contact') Contact
a(href='/contact') Contact
ul.nav.navbar-nav.navbar-right
if !user
li(class=title=='Login'?'active':undefined)