auth.js 640 Bytes
/**
 * 路由接口映射
 * @author h1bomb
 */
var connfig=require("../staticConfig.js");
var env = process.env.NODE_ENV || 'development';
//接口主域
exports.domain = 'http://localhost:30012';
//路由配置 测试
exports.res =
[{
    route: '/login',
    method: 'POST',
    view: 'pages/login',
    url:'/auth',
    isJsonRaw: false,
    params: [{
        name: 'user',
        type: 'String'
    },{
        name:'password',
        type: 'String'
    }]
},{
    route:'/login',
    method:'GET',
    view: 'pages/index'
},{
    route:'/logout',
    method:'GET'
},
{
    route: '/',
    method: 'GET',
    view: 'pages/index'
}];