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

home.controller.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
import { Controller, Get } from "alosaur/mod.ts";
@Controller("/home")export class HomeController { constructor(private service: UserService) {}
@Get("/users") async text() { return await this.service.getUsers(); }}
alosaur

Version Info

Tagged at
a year ago