Skip to content

Instantly share code, notes, and snippets.

@mackignacio
Last active August 25, 2020 19:50
Show Gist options
  • Save mackignacio/4d4efa1579130a8409879cb1ddac07f0 to your computer and use it in GitHub Desktop.
Save mackignacio/4d4efa1579130a8409879cb1ddac07f0 to your computer and use it in GitHub Desktop.
import { Get, Patch, Post, Delete, Put } from "@mayajs/common";
import { Controller } from "@mayajs/core";
@Controller({
model: "./sample.model", // Name of the model for this route
route: "/sample", // Name of the route
})
export class SampleController {
constructor( // Inject services here ) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment