What problem does it solve?
This Skill streamlines the development of HTTP services by providing a structured framework for defining routes, controllers, and middleware, simplifying complex server logic.
Core Features & Use Cases
- Route Definition: Easily define HTTP routes using methods like GET, POST, PUT, DELETE.
- Controller & Middleware Support: Organize application logic into controllers and apply middleware for cross-cutting concerns.
- File System Routing: Automatically load routes from a directory structure, mapping files to API endpoints.
- Integration with @hile/core: Seamlessly integrate HTTP services within the Hile service container.
- Use Case: Develop a RESTful API for a web application, handling requests for user data, product information, and order processing, with automatic route discovery from your controller files.
Quick Start
Use the hile-http skill to create a new HTTP service listening on port 3000 and define a GET route at '/hello' that responds with 'Hello, World!'.