api: remove localization, renovate error response

This commit is contained in:
wukko
2024-08-03 13:51:09 +06:00
parent 3fdf266ad0
commit aff22e8560
9 changed files with 60 additions and 420 deletions

View File

@@ -5,7 +5,6 @@ import express from "express";
import { Bright, Green, Red } from "./modules/sub/consoleText.js";
import { getCurrentBranch, shortCommit } from "./modules/sub/currentCommit.js";
import { loadLoc } from "./localization/manager.js";
import { env } from "./modules/config.js"
import path from 'path';
@@ -21,8 +20,6 @@ const __dirname = path.dirname(__filename).slice(0, -4);
app.disable('x-powered-by');
await loadLoc();
if (env.apiURL) {
const { runAPI } = await import('./core/api.js');
runAPI(express, app, gitCommit, gitBranch, __dirname)