axe-api 0.20.0-rc27 → 0.20.0-rc28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,11 +210,9 @@ class RouterBuilder {
210
210
  }
211
211
  }
212
212
  getResourcePath(model, relation) {
213
- // TODO: Fix
214
- return (0, change_case_1.paramCase)(pluralize_1.default.plural(model.name)).toLowerCase();
215
- // return relation
216
- // ? relation.resource
217
- // : paramCase(pluralize.plural(model.name)).toLowerCase();
213
+ return relation
214
+ ? relation.name
215
+ : (0, change_case_1.paramCase)(pluralize_1.default.plural(model.name)).toLowerCase();
218
216
  }
219
217
  }
220
218
  exports.default = RouterBuilder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axe-api",
3
- "version": "0.20.0-rc27",
3
+ "version": "0.20.0-rc28",
4
4
  "description": "AXE API is a simple tool which has been created based on Express and Knex.js to create Rest APIs quickly.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",