Skip to content

Commit ef706e6

Browse files
author
Ardalan Amini
committed
Merge branch 'development'
2 parents 934c710 + ae18946 commit ef706e6

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "foxify",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "The fast, easy to use & typescript ready web framework for Node.js",
55
"author": "Ardalan Amini <ardalanamini22@gmail.com> [https://github.com/ardalanamini]",
66
"contributors": [

src/routing/Router.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ import * as Foxify from "..";
2424

2525
const NODE_TYPES = Layer.TYPES;
2626

27-
const EMPTY_HANDLE = { handlers: [], options: { schema: { response: {} } }, params: {} };
27+
const EMPTY_HANDLE = {
28+
handlers: [
29+
new Encapsulation(() => {
30+
throw new HttpException(HTTP.NOT_FOUND);
31+
}),
32+
],
33+
options: { schema: { response: {} } },
34+
params: {},
35+
};
2836

2937
const pathMatchesMiddleware = (path: string, middleware: string) => {
3038
const middlewares = middleware.replace(/(^\/|\/$)/g, "").split("/");

0 commit comments

Comments
 (0)