Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active Jun 12, 2020
Embed
What would you like to do?
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