快速控制器
express-controllers 添加了来自模型-视图-控制器范例的控制器样式路由,以使用进行。
安装
npm:
$ npm install express-controllers
用法
var express = require ( 'express' )
var controllers = require ( 'express-controllers' )
var app = module . exports = express ( ) . controllers ( ) ;
if ( ! require . parent ) {
var server = app . listen ( 3000 , function ( ) {
var host = server . address ( ) . address ;
var port = se
1