Skip to content

Instantly share code, notes, and snippets.

View philipodev's full-sized avatar
🐞
Merging bugs to main

Philip Andersson philipodev

🐞
Merging bugs to main
View GitHub Profile
import { Controller, Route } from 'hot-controller';
@Controller('/api')
export default class HomeController {
@Route.GET('/') // matches /api
index(req, res) {
res.send('Welcome');
}