Controllers
Controllers are responsible for applying the necessary logic to the incoming request. and to the response that is delivered.

import { Controller } from "@zanobijs/common";import { ServiceExample } from "./example.service";
@Controller()export class ControllerExample { constructor( private sExample: ServiceExample, ) {}
getHelloService() { return this.sExample.getHello(); }}
Support us
ZanobiJS is an open source project licensed by MIT. It can grow thanks to the support of amazing people like you. If you want to join, read more here.