diff options
| author | Fuwn <[email protected]> | 2022-05-17 11:39:43 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-17 11:39:52 +0000 |
| commit | 476160a5c12a129ac4b37836e689f8aa368d69e3 (patch) | |
| tree | 6e169eeb6d666e946996b7c8f78b2fac19610a6c | |
| parent | fix(server): re-static #hostname and #port (diff) | |
| download | laurali-476160a5c12a129ac4b37836e689f8aa368d69e3.tar.xz laurali-476160a5c12a129ac4b37836e689f8aa368d69e3.zip | |
fix(decorators): assumed route format
| -rw-r--r-- | laurali/decorators.ts | 2 |
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; }; |