Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/src/decorator/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.21.0/src/decorator/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

Returns

Function