Versions

  • v0

    12/18/2023
    Open: Version
    +13
    -0

    import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth";
    import { blob_admin_blob } from "https://esm.town/v/stevekrouse/blob_admin_blob";
    import { blob_admin_home } from "https://esm.town/v/stevekrouse/blob_admin_home";
    import { html } from "https://esm.town/v/stevekrouse/html";
    import { Hono } from "npm:hono@3.9.2";

    const app = new Hono();
    app.get("/", async (c) => c.html(await blob_admin_home()));
    app.get("/new", (c) => c.html("TODO: New Blob"));
    app.get("/:blob", async (c) => c.html(await blob_admin_blob(c.req.param("blob"))));
    app.get("/edit/:blob", async (c) => c.html(`TODO: Edit ${c.req.param("blob")}`));
    app.get("/delete/:blob", async (c) => c.html(`TODO: Delete ${c.req.param("blob")}`));
    export default basicAuth(app.fetch);
1
Next