UNPKG
generator-superlight-node-angular
Version:
latest (1.0.0)
1.0.0
0.0.0
A superlight MEAN stack project
www.eladhayun.com
eladhayun/generator-superlight-node-angular
generator-superlight-node-angular
/
generators
/
app
/
templates
/
_app
/
_routes
/
_frontend.js
10 lines
(7 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
express =
require
(
'express'
);
var
router = express.
Router
();
// route to handle all angular requests
router.
get
(
'*'
,
function
(
req, res, next
) { res.
sendfile
(
'./public/views/index.html'
);
// load our public/index.html file
});
module
.
exports
= router;