BP.factory("Url", ["$resource",function($resource) {
    var res = $resource(
        "/url/server", {
            _id:"@_id"
        }, {
            save:{
                url:"/url/server/save",
                method:"POST"
            },
            getItem:{
                url:"/url/server/get_item",
                method:"GET",
            },
            queryItems:{
                url:"/url/server/query_items",
                method:"GET",
                isArray: true
            },
            query:{
                url:"/url/server/query",
                method:"GET",
                isArray: true
            },
            delete:{
                url: "/url/server/delete",
                method:"GET"
            },
            getRelaceFlg:{
                url:"/url/server/get_relace_flg",
                method:"GET"
            },
            find:{
                url:"/url/server/find",
                method:"GET",
                isArray: true
            },
            subRelaceEnv:{
                url:"/url/server/sub_relace_env",
                method:"GET"
            },
            findUrlTemplatesById:{
                url:"/url/server/find_url_templates_by_id",
                method:"GET"
            },
            update:{
                url:"/url/server/update",
                method:"POST"
            }
        }
    );
    return res;
}
]);
