resourceManage.js 1.08 KB
/**
 * Created by ty on 2016/3/30.
 * 资源管理路由
 */

//exports.domain = require('../config/common.js').domain;
exports.domain = 'http://172.16.6.115:8080/platform';//王伟
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境

exports.res = [
    {
        route: "/resource/index/index1",
        method: "GET",
        view: "pages/sourceManage/resourceManage",
        src: "/sourceManage/resourceManage"
    },
    {
        route: "/resources/resourceManage/queryResource",
        method: "POST",
        url: "/resources/queryResource",
        params: [
            {name: "name", type: "string"},
            {name: "sortId", type: "number"},
            {name: "platformId", type: "number"},
            {name: "page", type: "number"}
        ]
    },
    {
        route: "/resources/resourceManage/getResSorts",
        method: "POST",
        url: "/resources/getResSorts",
        params: []
    },
    {
        route: "/resources/resourceManage/getResPlatforms",
        method: "POST",
        url: "/resources/getResPlatforms",
        params: []
    }
];