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