In package com.eden.orchid.api.server

class com.eden.orchid.api.server.OrchidController

Custom routes can be registered for the local server as methods annotated in a Controller class. Any method in the Controller can be annotated with Get, Post, Put, Delete will be registered as routes. You may set a "path namespace" to consider all paths in this controller as sub-paths prefixed by the path namespace. Controller methods should always accept a first parameter of OrchidRequest, and also String parameters for all path placeholders. In addition, you may create an OptionsHolder class which loads the parameters from the request and specify that in the annotation and also have it passed as the last argument in the method parameters.


public <init>(kotlin.Int)

  • priority: Int


public open getPathNamespace(): String

  • No parameters