-
-
Save uno-de-piera/4ceaad03fb5a89c2cedbb3574b4fccef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Controller, Get, View } from "https://deno.land/x/alosaur/mod.ts"; | |
import {UserService} from "../../services/UserService.ts"; | |
@Controller('/home') | |
export class HomeController { | |
constructor(private service: UserService) {} | |
@Get('/') | |
async index() { | |
const users = await this.service.getUsers(); | |
return View('index', { users }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment