quarkiverse / quarkus-renarde

Server-side Web Framework with Qute templating, magic/easier controllers, auth, reverse-routing
Apache License 2.0
78 stars 19 forks source link

Use @Path("/foo") on Controller and @Path("/bar") Router resolve to `/bar` #145

Open ia3andy opened 1 year ago

ia3andy commented 1 year ago

Spec clearly state that it should resolve to /foo/bar instead.

This is what is wrong: Router.getURI(FooController::bar) and also when using uri:FooController.bar from a template.

The endpoint though is working as expected /foo/bar is reachable.

PS: is there a reason for not having bar resolving to foo/bar and /bar to /bar which allows more possibilities.

An issue which fix also this bug on the plugins: https://github.com/redhat-developer/quarkus-ls/issues/892