quarkiverse / quarkus-renarde

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

Feature: Config option to disable auto generate routing #230

Open gbourant opened 4 days ago

gbourant commented 4 days ago

At the moment Renarde (RenardeProcessor#collectControllers) generates routes for all non private methods of a given Controller.

The thing is, you could expose sensitive data, if you forget to define the method as private.

FroMage commented 3 days ago

If you make the method public then it's exposed, that's the contract. There's no point in making public methods in a controller other than to expose them, so I'm not sure this is an issue.