vonox7
<http://localhost:8090/asdf>
embeddedServer(Netty, port = 8090) { // <http://localhost:8090/admin-prefix-hello> --> "ADMIN" (OK) // <http://localhost:8090/subdirectory/hello> --> "Wildcard 404" (OK) // <http://localhost:8090/asdf> --> "ADMIN" (WHAT? Why did it take that route?) install(Routing) { route("admin-prefix-{...}", HttpMethod.Get) { handle { call.respond("ADMIN") } } route("subdirectory") { route("{...}", HttpMethod.Get) { handle { call.respond("Wildcard 404") } } } } }.start()
orangy
A modern programming language that makes developers happier.