all: move api into its own directory

This commit is contained in:
dumbmoron 2024-02-15 14:51:50 +00:00
parent 50a98c8b6a
commit b1a54fd1ff
No known key found for this signature in database
52 changed files with 6 additions and 5 deletions

BIN
api/assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -1,5 +1,6 @@
import UrlPattern from "url-pattern";
import { loadJSON } from "./sub/loadFromFs.js";
import { loadJSON } from "../modules/util/loadFromFs.js";
const config = loadJSON("./src/config.json");
const packageJson = loadJSON("./package.json");
const servicesConfigJson = loadJSON("./src/modules/processing/servicesConfig.json");

View File

@ -4,10 +4,10 @@ import { randomBytes } from "crypto";
const ipSalt = randomBytes(64).toString('hex');
import { version } from "../modules/config.js";
import { getJSON } from "../modules/api.js";
import { apiJSON, checkJSONPost, getIP, languageCode } from "../modules/sub/utils.js";
import { Bright, Cyan } from "../modules/sub/consoleText.js";
import { version } from "./config.js";
import { getJSON } from "../modules/util/preApi.js";
import { apiJSON, checkJSONPost, getIP, languageCode } from "../modules/util/misc.js";
import { Bright, Cyan } from "../modules/util/consoleText.js";
import stream from "../modules/stream/stream.js";
import loc from "../localization/manager.js";
import { generateHmac } from "../modules/sub/crypto.js";