Added Ts.ED
This commit is contained in:
10
backend/src/controllers/rest/HelloWorldController.ts
Normal file
10
backend/src/controllers/rest/HelloWorldController.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {Controller} from "@tsed/di";
|
||||
import {Get} from "@tsed/schema";
|
||||
|
||||
@Controller("/hello-world")
|
||||
export class HelloWorldController {
|
||||
@Get("/")
|
||||
get() {
|
||||
return "hello";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user