index.js
319 Bytes
var createError = require('http-errors');
var express = require('express');
var router = express.Router();
router.use('/home', require('./home'));
router.use('/upload', require('./upload'));
router.all('*', function (req, res, next) {
next(createError(404, 'This page is not exisit'));
});
module.exports = router;