silgi 0.36.3 → 0.36.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.36.3";
4
+ const version = "0.36.4";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -817,7 +817,8 @@ async function silgiFetch(_request, options, context) {
817
817
  request = new Request(_request, options);
818
818
  } else {
819
819
  request = _request;
820
- const match = findRoute(silgiCtx.router, _request.method, _request.url);
820
+ const silgiURL = getUrlPrefix(request.url, request.method);
821
+ const match = findRoute(silgiCtx.router, _request.method, silgiURL.path);
821
822
  if (!match) {
822
823
  throw createError({
823
824
  message: "Route not found",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.36.3",
4
+ "version": "0.36.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {