silgi 0.41.6 → 0.41.7
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 +9 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -578,7 +578,15 @@ function getUrlPrefix(path, method) {
|
|
|
578
578
|
|
|
579
579
|
async function orchestrate(route, event, _input) {
|
|
580
580
|
const silgiCtx = useSilgi();
|
|
581
|
-
const silgiURL = getUrlPrefix(route.route || event.req.url, route.method)
|
|
581
|
+
const silgiURL = !route.graphql ? getUrlPrefix(route.route || event.req.url, route.method) : {
|
|
582
|
+
methodName: route.method || "GET",
|
|
583
|
+
namespaceName: "graphql",
|
|
584
|
+
prefixName: "/api",
|
|
585
|
+
path: route.route || "",
|
|
586
|
+
raw: route.route || "",
|
|
587
|
+
pathParams: {},
|
|
588
|
+
queryParams: {}
|
|
589
|
+
};
|
|
582
590
|
const input = _input || (route.service?.setup.rules?.readBeforeBody === false || route.graphql ? {} : await parseRequestInput(event.req));
|
|
583
591
|
const hookContext = { earlyReturnValue: false };
|
|
584
592
|
const routerParams = _input ? input.path : getRouterParams(event);
|