@wild-framework/http
v0.1.0
Published
Express integration, routing, and error handling for Wild Framework.
Maintainers
Readme
@wild-framework/http
Express integration, routing, and error handling for Wild Framework.
Install
pnpm add @wild-framework/httpUsage
import { Router, action } from "@wild-framework/http";
const router = app.resolve(Router);
router.get("/users", action(UserController, "index"));
router.post("/users", CreateUserRequest, action(UserController, "store"));
router.use(express.json());Throwing an HttpException (e.g. NotFoundException) produces a structured JSON error response.
License
MIT
