static_route.js 773 B

123456789101112131415161718192021222324252627
  1. var express = require('express');
  2. var app = express();
  3. var router = express.Router();
  4. /********** static routes **************/
  5. router.get('/about', function(req, res) {
  6. res.render('pages/about', { title: 'About' });
  7. });
  8. router.get('/docs', function(req, res) {
  9. res.render('pages/docs', { title: 'Documentation' });
  10. });
  11. router.get('/privacy', function(req, res) {
  12. res.render('pages/privacy', { title: 'Privacy Policy' });
  13. });
  14. router.get('/terms', function(req, res) {
  15. res.render('pages/terms', { title: 'Terms & Conditions' });
  16. });
  17. router.get('/status', function(req, res) {
  18. res.render('pages/status', { title: 'System Status' });
  19. });
  20. router.get('/support', function(req, res) {
  21. res.render('pages/support', { title: 'Support' });
  22. });
  23. module.exports = router