deno.land / x / alosaur@v1.1.1 / examples / middlewares / areas / home / home.controller.ts

home.controller.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { ActionParam, Controller, Ctx, Get, HttpContext, QueryParam } from "alosaur/mod.ts";
@Controller("/home")export class HomeController { @Get("/test") @ActionParam(0, QueryParam("name")) @ActionParam(1, QueryParam("test")) @ActionParam(2, Ctx()) text( name: string, test: string, context: HttpContext, ) { return context.state; }}
alosaur

Version Info

Tagged at
a year ago