registerRouteWithMethod abstract method

SimApiBase registerRouteWithMethod(
  1. String route,
  2. SimApiHttpMethod method
)

Registers a route with a specified HTTP method

route The API route to register method The HTTP method to associate with the route (e.g., GET, POST, PUT, DELETE)

This method allows you to define a route and its associated HTTP method for handling requests.

Implementation

SimApiBase registerRouteWithMethod(String route, SimApiHttpMethod method);