Skip to content

Commit 067fec5

Browse files
committed
simplified path registration
1 parent 8050ee6 commit 067fec5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ class MyController {
2020
return ssr(MyComponent, { foo: "bar" });
2121
}
2222

23-
@Get("/app")
24-
@Get("/app/:page")
25-
@Get("/app/:page/:sup1")
23+
@Get("/app/:page*")
2624
renderMyRouteAwareComponent(ctx: Context) {
2725
return ssr(MyRouteAwareComponent, {
2826
foo: "Lorem Ipsum",

0 commit comments

Comments
 (0)