Added socket.io
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const router = require('express').Router();
|
||||
const conf = require('../conf');
|
||||
const middleware = require('../middleware/auth');
|
||||
|
||||
// API routes for authentication.
|
||||
router.use('/auth', require('./auth'));
|
||||
|
||||
// API routes for working with users. All endpoints need to be have valid user.
|
||||
router.use('/user', middleware.auth, require('./user'));
|
||||
|
||||
// API routes for working with hosts. All endpoints need to be have valid user.
|
||||
router.use('/host', middleware.auth, require('./host'));
|
||||
|
||||
// API routes for working with hosts. All endpoints need to be have valid user.
|
||||
router.use('/cert', middleware.auth, require('./cert'));
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user