Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
flash
Flash is a framework to build cloud service APIs with Denoflare.
For now it only supports REST API.
Usage
Create a worker module file:
// index.ts
import { flash } from "https://deno.land/x/flash/mod.ts";
export default flash({
"/": ({ request }) => {
const country = request.cf.country;
return { message: `Welcome from ${country}!` };
},
"/echo/:name": {
GET: ({ params }) => {
return { name: params.name };
},
},
404: { message: "Not found", status: 404 },
});
And run with Denoflare!
denoflare serve index.ts
Acknowledgment
Development of flash is supported by Active Connector Inc..