Skip to main content
Module

x/alosaur_lite/mod.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/mod.ts";

Classes

Storage all metadatas read from decorators and app settings.

Functions

Render JSON or other content such as strings, numbers, booleans

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.

Registering controllers

Renders view with template with changed template render

Interfaces

Application settings

Controller metadata used to storage information about registered controller.