Comparing version 0.2.3 to 0.2.4
var objectUtils = require('./objectUtils'); | ||
exports.applyRoute = function(app, route, obj) { | ||
if (obj.route) { | ||
//override autoroute with controller's defined route | ||
route = obj.route; | ||
} | ||
var server = app.server; | ||
@@ -4,0 +8,0 @@ if (objectUtils.isObject(obj)) { |
{ | ||
"name": "oils", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Oils js framework built on top of Express.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -21,2 +21,5 @@ oils | ||
Version 0.2.4 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.4.zip)) | ||
* support for custom routes in controllers | ||
Version 0.2.3 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.3.zip)) | ||
@@ -23,0 +26,0 @@ * support for routing verbs: get, post, put, delete, options, all |
@@ -19,2 +19,3 @@ CONTROLLERS FOLDER | ||
autoRoute: false, | ||
route: '/my-custom-route',//override autoroute path | ||
@@ -21,0 +22,0 @@ get : function(req, res) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56504
895
185