Code clean-up + API Keys

Cleaned up redundant code and moved around classes to be better grouped eg routes folder

Moved endpoints to other route files to better represent their actions

Removed redundant endpoints

Renamed endpoints to be more meaningful

Added API Key authorisations to utilize the API outside of Jellystat UI (Still need to document Endpoints)

Added new column to app_config to store api keys

New API Section under settings

Updated backups route name
This commit is contained in:
Thegan Govender
2023-07-01 22:52:19 +02:00
parent 44643274c3
commit e7912397d2
28 changed files with 1068 additions and 737 deletions

View File

@@ -1,7 +1,7 @@
const db = require("../db");
const Logging = require("../logging");
const Logging = require("../routes/logging");
const backup = require("../backup");
const backup = require("../routes/backup");
const moment = require('moment');
const { randomUUID } = require('crypto');