From 1d4861ea5fd1a824b6ee5dd6458273cabef54a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=82=85Fox?= Date: Sun, 10 May 2015 15:30:57 +0800 Subject: [PATCH] route for /doc --- routes/main/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/routes/main/index.js b/routes/main/index.js index 0d304a7..7496342 100644 --- a/routes/main/index.js +++ b/routes/main/index.js @@ -10,6 +10,10 @@ router.get('/', function(req, res, next) { home_title: config.get('site.front') }); }); +// GET /doc +router.get('/doc', function(req,res,next){ + res.redirect('https://github.com/Rap-ID/Rap-ID') +}); // GET /reg router.get('/reg', function(req, res, next) { res.render('main/reg', { @@ -23,4 +27,4 @@ router.post('/reg', require('./reg.post')); // GET /download router.get('/download', require('./download')); -module.exports = router; \ No newline at end of file +module.exports = router;