Skip to main content
Module

x/alosaur/mod.ts>Controller

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
function Controller
import { Controller } from "https://deno.land/x/alosaur@v0.35.2/mod.ts";

Defines a class as a controller. Each decorated controller method is served as a controller action. Controller actions are executed when request come.

Parameters

optional
baseRoute: string

Extra path you can apply as a base route to all controller actions

optional
providers: ProviderDeclaration[]

Providers is declare in controller

Returns

Function