Restructured rest api

This commit is contained in:
SamTV12345 2024-09-14 16:36:02 +02:00
parent 08f199178d
commit 644cb9b39f
5 changed files with 113 additions and 11 deletions

View file

@ -7,6 +7,16 @@ const settings = require('../utils/Settings');
const apiHandlerLogger = log4js.getLogger('APIHandler');
export type APIFields = {
apikey: string;
api_key: string;
padID: string;
padName: string;
authorization: string;
}
// ensure we have an apikey
export let apikey:string|null = null;
const apikeyFilename = absolutePaths.makeAbsolute(argv.apikey || './APIKEY.txt');