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