Adding custom HTTP routes to the API using Api.Route and Route.Interface. Use this skill when the developer wants to expose a custom HTTP endpoint (GET, POST, PUT, etc.) on the API Gateway alongside the GraphQL handler, implement Route.Interface with full DI support, or register a custom HTTP handler in webiny.config.tsx.
$npx -y skills add webiny/webiny-js --skill http-routeInstalls into the current project.
Run `npx skills use "https://github.com/webiny/webiny-js" --skill "webiny/webiny-js/http-route"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/webiny/webiny-js" that are relevant to the current task. Run `npx skills add "https://github.com/webiny/webiny-js"` and select the relevant skills, then follow their instructions.