From 5ad4683e2e59ea1d00558945872089bebea1c2b1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 18 Jul 2020 20:09:03 +0200 Subject: Fixed abc submodule --- src/main.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/main.ts') diff --git a/src/main.ts b/src/main.ts index 9b16126..667131c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,6 @@ import "https://deno.land/x/dotenv/load.ts"; -// import { Application } from "https://deno.land/x/abc@v1/mod.ts"; -// import type { Context } from "https://deno.land/x/abc@v1/mod.ts"; -import { Application } from "./abc/mod.ts"; -import type { Context } from "./abc/mod.ts"; +import { Application } from "https://deno.land/x/abc@master/mod.ts"; +import type { Context } from "https://deno.land/x/abc@master/mod.ts"; import { renderFile } from "https://deno.land/x/dejs/mod.ts"; import * as groups from "./groups/index.ts"; import DBController from "./db/DBController.ts"; @@ -19,7 +17,7 @@ app.renderer = { }, }; -app.static("/", "./src/public/"); // Manage static files +app.static("/", "./src/public/"); // Manage static files - TODO: Consider serving css/js files separately app.get("/", async (c: Context) => await c.render("./src/public/test.html", { name: "test" })); // Render index on / // Load groups dynamically -- cgit v1.2.3