@scalar/api-client
Version:
the open source API testing client
23 lines (22 loc) • 550 B
JavaScript
import { PathId as e } from "../routes.js";
function f(u) {
return () => {
const t = {
[]: "default",
[]: "default",
[]: "default",
[]: "default",
[]: "default",
[]: "default",
[]: "default",
[]: "default",
[]: "default"
}, a = u?.currentRoute.value;
return a && Object.keys(t).forEach((r) => {
a.params[r] && (t[r] = a.params[r]);
}), t;
};
}
export {
f as getRouterParams
};