vonox7
01/15/2019, 8:23 PM<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
vonox7
01/15/2019, 9:48 PM