Skip to content

Instantly share code, notes, and snippets.

Last active Jun 12, 2020
What would you like to do?
import { Controller, Get, View } from "";
import {UserService} from "../../services/UserService.ts";
export class HomeController {
constructor(private service: UserService) {}
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