@asapjs/router
@asapjs/router는 Express.js 기반의 HTTP 라우팅, JWT 인증, Swagger(OpenAPI) 자동 생성을 제공하는 ASAPJS의 라우팅 패키지입니다. TypeScript 메서드 데코레이터로 라우트를 선언하고, 컨트롤러 클래스를 통해 Express 앱에 마운트합니다.
import {
Get, Post, Put, Delete,
RouterController,
ExecuteArgs,
jwtVerification,
HttpException,
requestType, responseType,
RouterPlugin,
addPaths, addScheme, getSwaggerData,
generateSchemeRefWithName, getSchemeNameFromRef,
} from '@asapjs/router';이 페이지에서 찾을 수 있는 것
| 심볼 | 분류 | 페이지 |
|---|---|---|
Get, Post, Put, Delete | Decorator | HTTP Method Decorators |
RouterController | Class | RouterController |
ExecuteArgs<P,Q,B> | Interface | ExecuteArgs |
jwtVerification | Middleware | jwtVerification |
HttpException | Class | HttpException |
requestType, responseType | Function | requestType / responseType |
RouterPlugin | Class | RouterPlugin |
addPaths, addScheme, getSwaggerData | Function | Swagger |
패키지 정보
| 항목 | 값 |
|---|---|
| 패키지명 | @asapjs/router |
| 버전 | 1.0.0-alpha.10 |
| 진입점 | dist/index.js |
| 타입 | dist/index.d.ts |
| 의존 패키지 | @asapjs/common, @asapjs/error, @asapjs/sequelize, @asapjs/types |
관련 항목
- Bootstrap —
Application과 플러그인 등록 - DTO — DTO 클래스와
DtoOrTypeIs타입 - Data Modeling —
TypeIs.*타입 팩토리
Last updated on