Skip to Content
API 레퍼런스@asapjs/router@asapjs/router

@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, DeleteDecoratorHTTP Method Decorators
RouterControllerClassRouterController
ExecuteArgs<P,Q,B>InterfaceExecuteArgs
jwtVerificationMiddlewarejwtVerification
HttpExceptionClassHttpException
requestType, responseTypeFunctionrequestType / responseType
RouterPluginClassRouterPlugin
addPaths, addScheme, getSwaggerDataFunctionSwagger

패키지 정보

항목
패키지명@asapjs/router
버전1.0.0-alpha.10
진입점dist/index.js
타입dist/index.d.ts
의존 패키지@asapjs/common, @asapjs/error, @asapjs/sequelize, @asapjs/types

관련 항목

  • BootstrapApplication과 플러그인 등록
  • DTO — DTO 클래스와 DtoOrTypeIs 타입
  • Data ModelingTypeIs.* 타입 팩토리
Last updated on