diff --git a/api/main.ts b/api/main.ts
index 53ba12f..ae6e6a0 100644
--- a/api/main.ts
+++ b/api/main.ts
@@ -1,5 +1,14 @@
// main API file. Handles all the routing/api stuff
+
+// Due to the Language servers, the import statements are
+// shown as errors, @ts-ignore is used to ignore them.
+// This is a Deno file, but the Vue LSP is still
+// attempting to find errors, which causes
+// confusing False errors
+
+// @ts-ignore
import { Router, Application } from "https://deno.land/x/oak/mod.ts";
+// @ts-ignore
import { oakCors } from "https://deno.land/x/cors/mod.ts";
@@ -11,7 +20,7 @@ const app = new Application();
// in the HTML
router
.get("/", (ctx) => {
- ctx.response.body = "ESP Api";
+ ctx.response.body = "ESP API Site";
})
.get("/api", (ctx) => {
@@ -23,4 +32,5 @@ app.use(oakCors());
app.use(router.routes());
app.use(router.allowedMethods());
+// @ts-ignore
await app.listen({ port: 8000 });
\ No newline at end of file
diff --git a/src/App.vue b/src/App.vue
index dd9e642..2b8647a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,12 +1,11 @@
-
-
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/router/index.ts b/src/router/index.ts
index 04e4971..2c63d4b 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,7 +1,13 @@
import { createRouter, createWebHistory } from "vue-router";
+
+// Vue components imported here.
+// the vue components are the Pages that will be rendered
+// at these URL's.
import Home from "../components/Home.vue";
import Login from "../components/Login.vue";
+// The routing does not happen automatically
+// Each route has to be defined here, or it wont work.
const routes = [
{
path: "/",
@@ -21,26 +27,3 @@ const router = createRouter({
});
export default router;
-
-/*
-
-
-
-
-
-
- */
\ No newline at end of file