0.7.0 • Published 5 months ago
@alepha/router v0.7.0
@alepha/server
Installation
npm install @alepha/serverUsage
import { Alepha, $route } from "@alepha/server";
class App {
index = $route({
handler: () => "Hello, World!",
});
}
Alepha
.create({
SERVER_PORT: 3000,
SERVER_OPENAPI_ENABLED: true,
SERVER_SECURITY_ENABLED: true,
})
.with(App)
.start();