silgi 0.34.2 → 0.34.4
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
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -828,7 +828,7 @@ function createSilgiCore(event) {
|
|
|
828
828
|
const routeStr = substitutePathParams(String(path), context?.pathParams);
|
|
829
829
|
const methodStr = String(method);
|
|
830
830
|
const match = findRoute(silgiCtx.router, methodStr, routeStr);
|
|
831
|
-
return match?.data?.setup
|
|
831
|
+
return match?.data?.setup;
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
834
|
}
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "h3";
|
|
7
7
|
import {
|
|
8
8
|
createError,
|
|
9
|
+
getUrlPrefix,
|
|
9
10
|
isError,
|
|
10
11
|
silgiFetch,
|
|
11
12
|
useSilgi
|
|
12
13
|
} from "silgi";
|
|
13
|
-
import { getUrlPrefix } from "../../core/utils/route.ts";
|
|
14
14
|
export async function addNitroApp(silgiContext = useSilgi()) {
|
|
15
15
|
const nitro = silgiContext.framework;
|
|
16
16
|
const prefixs = silgiContext.routerPrefixs;
|