function taskServiceAdmin(DomainServiceFactory) {
        return DomainServiceFactory('/task/admin/:action/:taskId',{taskId:'@id',action:'@action'},
            {"show": {method: "GET"}},
            {"save": {method: "POST"}},
            {"delete": {method: "DELETE"}}
        );
    }
/**
     * For admin access. URL is different. The reason for creating new service is angular resource does not
     * handled '/' in url when passed in action. so if I pass admin/save from controller then it will be /admin%2Fsave
     * check https://github.com/angular/angular.js/issues/1388#issue-6979382
     */
For admin access. URL is different. The reason for creating new service is angular resource does not
handled '/' in url when passed in action.
For admin access . URL is different . The reason for creating new service is angular resource does not handled ' / ' in url when passed in action .
function taskServiceAdmin(DomainServiceFactory) {
        return DomainServiceFactory('/task/admin/:action/:taskId',{taskId:'@id',action:'@action'},
            {"show": {method: "GET"}},
            {"save": {method: "POST"}},
            {"delete": {method: "DELETE"}}
        );
    }
function taskServiceAdmin ( DomainServiceFactory ) { return DomainServiceFactory ( '/task/admin/:action/:taskId' , { taskId : '@id' , action : '@action' } , { "show" : { method : "GET" } } , { "save" : { method : "POST" } } , { "delete" : { method : "DELETE" } } ) ; }
For admin access.
For admin access .