mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
/* API routes contains general api funcitonality. */
|
|
|
|
var express = require('express');
|
|
var router = express.Router();
|
|
|
|
router.use(function auth(req, res, next) {
|
|
console.log('Read the user cookie here.');
|
|
next();
|
|
});
|
|
|
|
// Base route provides server version information.
|
|
router.get('/', function(req, res) {
|
|
res.send('App version information goes here....');
|
|
});
|
|
|
|
module.exports = router; |