hono-cgi-adapter
v0.1.1
Published
CGI/FastCGI adapter for Hono
Readme
Hono CGI Adapter
example
import {handlecgi,getConnInfoOnCGI} from "hono-cgi-adapter";
import {Hono} from "hono"
const app = new Hono();
app.get("/",(c)=>{
return c.text("Hello CGI");
});
app.get("/info",(c)=>{
return c.json(getConnInfo());
});
app.notFound((c)=>{
return c.text("Not Found");
})
handlecgi(app,process.env);Plese bundle and add interpreter setting (ex.#!C:\Users\USERNAME\.deno\bin\deno.EXE --allow-env) at the top.
Then place it in a folder like normal CGI.(ex../Apache/cgi-bin/aaa.ts)
