Compare commits
2 Commits
dd445a22c0
...
00eedce6ea
Author | SHA1 | Date | |
---|---|---|---|
00eedce6ea | |||
|
84656ec61a |
@ -58,14 +58,19 @@ curl http://localhost:3000/info
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Build application
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yarn build
|
||||||
|
```
|
||||||
|
|
||||||
# Quick Register Controller
|
# Quick Register Controller
|
||||||
|
|
||||||
- Add new controller `src/controller/home.controller.ts`
|
- Add new controller `src/controller/home.controller.ts`
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Request, Response } from "express"
|
import { Request, Response } from "express"
|
||||||
import Controller from "../decorators/controller.decorator"
|
import { Controller, Get, Post, Delete } from "../decorators"
|
||||||
import { Get, Post, Delete } from "../decorators/handlers.decorator"
|
|
||||||
|
|
||||||
const data: any[] = []
|
const data: any[] = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user