silgi 0.41.26 → 0.41.27
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/dist/cli/index.mjs +1 -1
- package/dist/core/index.mjs +18 -5
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -329,11 +329,24 @@ async function createSilgi(config) {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
if (object.apiType === "rest-graphql") {
|
|
333
|
+
addRoute(silgi.router, "", routeWithParams, {
|
|
334
|
+
method: "",
|
|
335
|
+
route: routeWithParams,
|
|
336
|
+
service: object
|
|
337
|
+
});
|
|
338
|
+
addRoute(silgi.router, method, routeWithParams, {
|
|
339
|
+
method,
|
|
340
|
+
route: routeWithParams,
|
|
341
|
+
service: object
|
|
342
|
+
});
|
|
343
|
+
} else {
|
|
344
|
+
addRoute(silgi.router, method, routeWithParams, {
|
|
345
|
+
method,
|
|
346
|
+
route: routeWithParams,
|
|
347
|
+
service: object
|
|
348
|
+
});
|
|
349
|
+
}
|
|
337
350
|
}
|
|
338
351
|
if (!silgi._middlewareRouter) {
|
|
339
352
|
silgi._middlewareRouter = createRouter();
|