With Apiker, you can create an API in only 3 lines of code
import { apiker, res } from "apiker";
const routes = { "/users/:id/hello": () => res("Hello World!") };
apiker.init({ routes, exports, objects: ["Common"] });
β‘οΈ GET /users/my-user/hello
{ "message": "Hello World!" }
Note: To run Apiker, you need a Cloudflare account with Durable Objects access.
Check out the Apiker documentation site.
PRs and issues are welcome. Feel free to submit any issues you have at: https://github.com/hodgef/Apiker/issues