This commit is contained in:
16
registry/src/http/views.ts
Normal file
16
registry/src/http/views.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ABC } from "../deps.ts";
|
||||
import { basicauth } from "../utils.ts";
|
||||
|
||||
export default function views(g: ABC.Group) {
|
||||
g.get(
|
||||
"/",
|
||||
async (ctx) => {
|
||||
return ctx.render("index");
|
||||
// const render = await IndexView();
|
||||
// console.log(render);
|
||||
// ctx.response.body = render;
|
||||
// ctx.response.status = 200;
|
||||
},
|
||||
basicauth("views")
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user