revert 7bfada9792: enhance: remove bull-board support

This commit is contained in:
Hazelnoot 2025-03-25 17:25:30 -04:00
parent 7ea710b314
commit d41d77fcd7
7 changed files with 180 additions and 11 deletions

View file

@ -35,7 +35,7 @@ export type SystemWebhookPayload = {
createdAt: string;
type: string;
body: any;
};
}
const config = loadConfig();
export const port = config.port;
@ -45,6 +45,10 @@ export const host = new URL(config.url).host;
export const WEBHOOK_HOST = 'http://localhost:15080';
export const WEBHOOK_PORT = 15080;
export const cookie = (me: UserToken): string => {
return `token=${me.token};`;
};
export type ApiRequest<E extends keyof misskey.Endpoints, P extends misskey.Endpoints[E]['req'] = misskey.Endpoints[E]['req']> = {
endpoint: E,
parameters: P,