@adaptivestone/framework 5.0.0-alpha.21 → 5.0.0-alpha.22
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.
- package/CHANGELOG.md +5 -0
- package/controllers/Auth.js +1 -1
- package/controllers/Home.js +1 -1
- package/modules/AbstractController.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
### 5.0.0-alpha.22
|
|
2
|
+
|
|
3
|
+
[UPDATE] update deps
|
|
4
|
+
[FIX] fix optional routing parameters
|
|
5
|
+
|
|
1
6
|
### 5.0.0-alpha.21
|
|
2
7
|
|
|
3
8
|
[BREAKING] possible breaking. Framework start using express 5 instead of express 4. Please follow express migration guide too https://expressjs.com/en/guide/migrating-5.html.
|
package/controllers/Auth.js
CHANGED
package/controllers/Home.js
CHANGED
|
@@ -376,14 +376,14 @@ class AbstractController extends Base {
|
|
|
376
376
|
* @returns {Map<string, Array<typeof import('../services/http/middleware/AbstractMiddleware.js').default | [Function, ...any]>>}
|
|
377
377
|
* @example
|
|
378
378
|
* return new Map([
|
|
379
|
-
* ['
|
|
379
|
+
* ['/{*splat}', [GetUserByToken]] // for any method for this controller
|
|
380
380
|
* ['POST/', [Auth]] // for POST method
|
|
381
381
|
* ['/superSecretMethod', [OnlySuperSecretUsers]] // route with ANY method
|
|
382
382
|
* ['PUT/superSecretMathod', [OnlySuperSecretAdmin]] // route with PUT method
|
|
383
383
|
* ]);
|
|
384
384
|
*/
|
|
385
385
|
static get middleware() {
|
|
386
|
-
return new Map([['
|
|
386
|
+
return new Map([['/{*splat}', [GetUserByToken, Auth]]]);
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
/**
|