Skip to main content
Module

x/alosaur_lite/src/decorators.ts

Lightweight version of Alosaur. Specially designed to work with deno deploy.
Latest
import * as alosaurLite from "https://deno.land/x/alosaur_lite@v0.1.1/src/decorators.ts";

Functions

Controller with route

Injects a context parameter value to the controller action parameter. Must be applied on a controller action parameter.

Registers an action to be executed when Delete request comes on a given route. Must be applied on a controller action.

Get action function

Injects a request's route parameter value to the controller action parameter. Must be applied on a controller action parameter.

Registers an action to be executed when PATCH request comes on a given route. Must be applied on a controller action.

Post action function

Registers an action to be executed when POST request comes on a given route. Must be applied on a controller action.

Injects a request's query parameter value to the controller action parameter. Must be applied on a controller action parameter.