@zeltjs/core
v0.1.1
Published
The core framework for building type-safe HTTP APIs with decorators and dependency injection.
Downloads
271
Readme
@zeltjs/core
The core framework for building type-safe HTTP APIs with decorators and dependency injection.
Installation
npm install @zeltjs/coreQuick Start
import { Controller, Get, createHttpApp } from '@zeltjs/core';
@Controller('/hello')
class HelloController {
@Get('/')
hello() {
return { message: 'Hello, World!' };
}
}
const app = createHttpApp({ controllers: [HelloController] });Documentation
See zeltjs.dev for full documentation.
License
MIT
