10 lines
236 B
TypeScript
10 lines
236 B
TypeScript
import { Controller, View, ViewRoot } from "@muddle/decorators";
|
|
|
|
@Controller("/")
|
|
@ViewRoot("./views")
|
|
export class LandingController {
|
|
@View("index.spug")
|
|
index() {
|
|
return { title: "Porter", components: ["Button", "Card"] };
|
|
}
|
|
}
|