Skip to Content
Basic Controller with a Service

Basic Controller with Service Example

A basic example of the Vovk.ts controller  and a service  with no validation.

Result

Code

src/modules/basic-with-service/BasicService.ts
export default class BasicService { static getHello() { return { greeting: 'Hello world from a service!' }; } }

The code above is fetched from GitHub repository. 

Last updated on