/ts-server

Primary LanguageTypeScript

TS Server

Minimal API framework written in TypeScript

API

# Register controllers and global middlewares
register(controllers, before?, after?)

# Start the server
runServer(host, port)

Features

  • Decorators
    • Input
      • Body
      • PathParam
      • QueryParam
    • Methods
      • Get
      • Post
      • Patch
      • Put
      • Delete
      • Options
      • Head
    • Header
    • Cookie
  • Middlewares
    • Global middlewares
    • Route middlewares
    • Controller middlewares
  • Logger
  • Constructor injection
  • Scaffold
    • Model
    • Controller
    • Service
    • NPM Dependencies