godprotocol 2.2.65 → 2.2.66
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/package.json
CHANGED
|
@@ -183,12 +183,15 @@ class Route_table extends Headers {
|
|
|
183
183
|
let route = await this.get_route(name);
|
|
184
184
|
|
|
185
185
|
if (!route) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
route = await this.get_route("*");
|
|
187
|
+
if (!route) {
|
|
188
|
+
return {
|
|
189
|
+
ok: false,
|
|
190
|
+
status: 404,
|
|
191
|
+
message: "Route not found",
|
|
192
|
+
data: { path: `/${name}`, name },
|
|
193
|
+
};
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
|
|
194
197
|
let { handler, config } = route;
|