# tsoa
###### tags: `教學`
----
## tsoa兩大功用
1. 路由
2. 產生swagger
---
## tsoa config
----
## tsoa.json
----
## swagger.json
----
## routes
---
## controller
----
```typescript=
@Tags()
@Route()
```
----
```typescript=
@Get()
@Post()
@Delete()
@Patch()
```
----
```typescript=
@Path()
@Body()
```
---
## type
- DTO
- entity
{"metaMigratedAt":"2023-06-17T00:17:02.877Z","metaMigratedFrom":"Content","title":"tsoa","breaks":true,"contributors":"[{\"id\":\"971231c6-4fae-44ed-bc28-ee6c9447cc81\",\"add\":358,\"del\":17}]"}