We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be useful to support path groups. I've split my code into separate controllers, like so:
class UserController : AbstractController() { val users: MutableList<User> = mutableListOf() init { get("/users") { val model: MutableMap<String,List<User>> = hashMapOf<String,List<User>>() model.put("users",users) engine.render(ModelAndView(model,"users")) } post("/users/add-submit") { val u:User = User(request.queryParams("name"),request.queryParams("age").toInt()) users.add(u) redirect("/users") } } }
Being able to use paths could reduce code duplication:
init { path("/users") { get("/") { // e.g. /users/ } get("/add") { // e.g. /users/add } post("/submit") { // e.g. /users/submit } } }
The text was updated successfully, but these errors were encountered:
We'll try to get this into our official release!
Sorry, something went wrong.
Did you include it in the official release?
No branches or pull requests
It would be useful to support path groups. I've split my code into separate controllers, like so:
Being able to use paths could reduce code duplication:
The text was updated successfully, but these errors were encountered: