Skip to content

Commit

Permalink
Allowing sub_path for view calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Intellipharm committed Jan 7, 2016
1 parent 3b64484 commit d0dedb5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-cakephp",
"description": "An AngularJS data modelling framework that ties in with a CakePHP REST API",
"version": "0.5.1",
"version": "1.1.0",
"homepage": "https://github.com/intellipharm/angular-cakephp",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion dist/rest-api/rest-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ System.register(['lodash', '../angular-cakephp'], function (_export) {

// request config
request_config.method = 'GET';
request_config.sub_path = id;
request_config.sub_path = _.has(request_config, 'sub_path') ? id + '/' + request_config.sub_path : id;

// request ...
return this.request(active_record_class, request_config);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-cakephp",
"version": "1.0.1",
"version": "1.1.0",
"main": "dist/angular-cakephp.js",
"scripts": {
"postinstall": "jspm install"
Expand Down
2 changes: 1 addition & 1 deletion src/rest-api/rest-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class RestApi {

// request config
request_config.method = 'GET';
request_config.sub_path = id;
request_config.sub_path = _.has( request_config, 'sub_path' ) ? id + '/' + request_config.sub_path : id;

// request ...
return this.request( active_record_class, request_config );
Expand Down

0 comments on commit d0dedb5

Please sign in to comment.