diff --git a/server/main.ts b/server/main.ts index 57dba98..86121da 100644 --- a/server/main.ts +++ b/server/main.ts @@ -1,8 +1,6 @@ import { oakAdapter, etaEngine, viewEngine, Application, Router, staticFileRoutes, Status } from "./deps.ts"; import { getLikes, updateLikes } from "./service.ts"; -//installGlobals(); - const app = new Application(); app.use( @@ -11,13 +9,11 @@ app.use( }) ); -// deno-lint-ignore no-explicit-any async function updateLikesHandler(ctx: any) { const likes = await updateLikes(ctx); ctx.render("likes-done.html", {likes: likes}); } -// deno-lint-ignore no-explicit-any async function getLikesHandler(ctx: any) { const {likes, alreadyLiked} = await getLikes(ctx); @@ -28,7 +24,6 @@ async function getLikesHandler(ctx: any) { } } -// deno-lint-ignore no-explicit-any async function getUnLikesHandler(ctx: any) { const likes = await updateLikes(ctx); ctx.render("likes.html", {likes: likes}); @@ -41,7 +36,7 @@ router .post("/unlikes.html", getUnLikesHandler) .post("/likes.html", updateLikesHandler) -// checks for static routes (real html files generated by 11ty in the _site directory) +// checks for static routes (real html files generated by 11ty in the _site directory) and uses them if they exist app.use(staticFileRoutes); app.use(router.routes()); diff --git a/src/_includes/webc/c-footer.webc b/src/_includes/webc/c-footer.webc index 861b453..54f0d9a 100644 --- a/src/_includes/webc/c-footer.webc +++ b/src/_includes/webc/c-footer.webc @@ -7,6 +7,7 @@