A description / name for the controller / class.
The method decorator.
import { Controller, ControllerBase, Describe, GET, IHttpRequest, IHttpResponse, It } from '@egomobile/http-server'
@Controller()
@Describe('My controller')
export default class MyController extends ControllerBase {
@GET()
@It('should run without error')
async index(request: IHttpRequest, response: IHttpResponse) {
// your code
}
}
Optional
arg3: Nilable<ItSettingsValue>Generated using TypeDoc
Sets up a request method for use in (unit-)tests.