Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/alosaur/mod.ts>Controller

Alosaur - Deno web framework with many ES Decorators
Very Popular
Latest
function Controller
import { Controller } from "https://deno.land/x/alosaur@v1.1.1/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
firstArgument: FirstArgument

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

optional
providers: ProviderDeclaration[]

Providers is declare in controller

Returns

Function