Skip to content

Commit

Permalink
[routing] Remove operator modifier from get methods (#2051)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Nov 15, 2023
1 parent 384a79f commit 3d90520
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -112,7 +112,7 @@ interface JavalinDefaultRoutingApi<API : RoutingApi> : RoutingApi {
* Adds a GET request handler for the specified path to the instance.
* See: [Handlers in docs](https://javalin.io/documentation.handlers)
*/
operator fun get(path: String, handler: Handler): API = addHttpHandler(GET, path, handler)
fun get(path: String, handler: Handler): API = addHttpHandler(GET, path, handler)

/**
* Adds a POST request handler for the specified path to the instance.
Expand Down Expand Up @@ -154,7 +154,7 @@ interface JavalinDefaultRoutingApi<API : RoutingApi> : RoutingApi {
* Adds a GET request handler with the given roles for the specified path to the instance.
* See: [Handlers in docs](https://javalin.io/documentation.handlers)
*/
operator fun get(path: String, handler: Handler, vararg roles: RouteRole): API = addHttpHandler(GET, path, handler, *roles)
fun get(path: String, handler: Handler, vararg roles: RouteRole): API = addHttpHandler(GET, path, handler, *roles)

/**
* Adds a POST request handler with the given roles for the specified path to the instance.
Expand Down

0 comments on commit 3d90520

Please sign in to comment.