Last active
August 25, 2020 19:50
-
-
Save mackignacio/4d4efa1579130a8409879cb1ddac07f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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