From 5b72b479ba3acf391a61a2c04ca694e30d108565 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 11 Jun 2021 18:57:41 +0200 Subject: Backend is fully in typescript now --- packages/server/src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/server/src/app.ts') 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!"); -- cgit v1.2.3-18-g5258