mvcx
Version:
A web based MVC framework for Node JS.
24 lines (20 loc) • 720 B
JavaScript
module.exports = {
mvcx: {
clusteringEnabled: false,
assets: {
paths: [
'./tests/assets/angular',
'./tests/assets/bootstrap'
],
buildDir: './tests/assets/bin'
},
controllerPath: './tests/controllers',
viewPath: './tests/views',
routes: [
{ method: 'get', route: '/Books/:bookId', controller: 'BooksController', action: 'retrieve' },
{ method: 'get', route: '/Books', controller: 'BooksController', action: 'retrieve' },
{ method: 'post', route: '/Books', controller: 'BooksController', action: 'create', requestModel: 'BooksCreateRequest' },
{ method: 'get', route: '/', view: 'Static/HomeView' }
]
}
};