BP.factory("TemplateUrlRoute", ["$resource", function ($resource) {
    var res = $resource(
        "/template_url_route/server", {
            _id: "@_id"
        }, {
            save: {
                url: "/template_url_route/server/save",
                method: "POST"
            },
            update: {
                url: "/template_url_route/server/update",
                method: "POST"
            },
            query: {
                url: "/template_url_route/server/query",
                method: "GET",
                isArray: true
            },
            delete: {
                url: "/template_url_route/server/delete",
                method: "GET"
            },
            find: {
                url: "/template_url_route/server/find",
                method: "GET",
                isArray: true
            }
        }
    );
    return res;
}
]);
