deno.land / x / alosaur@v1.1.1
Alosaur - Deno web framework 🦖.
onPreAction, onPostAction, onCatchAction
How do I use Alosaur in Deno Deploy? Use the light version of Alosaur: Alosaur Lite
app.ts:
import { App, Area, Controller, Get } from "https://deno.land/x/alosaur/mod.ts";
@Controller() // or specific path @Controller("/home")
export class HomeController {
@Get() // or specific path @Get("/hello")
text() {
return "Hello world";
}
}
// Declare module
@Area({
controllers: [HomeController],
})
export class HomeArea {}
// Create alosaur application
const app = new App({
areas: [HomeArea],
});
app.listen();
And run
deno run --allow-net app.ts
Version Info