aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-17 11:39:43 +0000
committerFuwn <[email protected]>2022-05-17 11:39:52 +0000
commit476160a5c12a129ac4b37836e689f8aa368d69e3 (patch)
tree6e169eeb6d666e946996b7c8f78b2fac19610a6c
parentfix(server): re-static #hostname and #port (diff)
downloadlaurali-476160a5c12a129ac4b37836e689f8aa368d69e3.tar.xz
laurali-476160a5c12a129ac4b37836e689f8aa368d69e3.zip
fix(decorators): assumed route format
-rw-r--r--laurali/decorators.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/laurali/decorators.ts b/laurali/decorators.ts
index 54a0c79..d95be3f 100644
--- a/laurali/decorators.ts
+++ b/laurali/decorators.ts
@@ -29,7 +29,7 @@ export const route = (path?: string) => {
key: string | symbol,
descriptor: PropertyDescriptor,
) => {
- target.addRoute(path || key, descriptor.value);
+ target.addRoute(path || `/${key.toString()}`, descriptor.value);
return descriptor;
};