aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/app.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-06-11 18:57:41 +0200
committerHampusM <hampus@hampusmat.com>2021-06-11 18:57:41 +0200
commit5b72b479ba3acf391a61a2c04ca694e30d108565 (patch)
treeccc1f681fb39e8b6d0e15a5d6125465c63fc484c /packages/server/src/app.ts
parent7e9433762f51be2c4938481c9c33589982118033 (diff)
Backend is fully in typescript now
Diffstat (limited to 'packages/server/src/app.ts')
-rw-r--r--packages/server/src/app.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts
index 810ca65..d5f63b0 100644
--- a/packages/server/src/app.ts
+++ b/packages/server/src/app.ts
@@ -1,5 +1,5 @@
import { readFileSync, readdirSync } from "fs";
-import { Git } from "./api/git";
+import { GitAPI } from "./api/git";
import api from "./api/v1";
import { exit } from "process";
import { fastify as fastifyFactory } from "fastify";
@@ -50,7 +50,7 @@ if(settings.production) {
}
const fastify = fastifyFactory();
-const git = new Git(settings.base_dir);
+const git = new GitAPI(settings.base_dir);
fastify.setNotFoundHandler({}, function(req, reply) {
reply.code(404).send("Page not found!");