mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Replace config manager with unjs/c12
This commit is contained in:
parent
6b2e4044b6
commit
6a54c5b805
30 changed files with 744 additions and 733 deletions
|
|
@ -9,10 +9,9 @@ import {
|
|||
import type { APIAccount } from "~types/entities/account";
|
||||
import type { APIRelationship } from "~types/entities/relationship";
|
||||
import type { APIStatus } from "~types/entities/status";
|
||||
import { ConfigManager } from "config-manager";
|
||||
import { config } from "config-manager";
|
||||
import { sendTestRequest, wrapRelativeUrl } from "~tests/utils";
|
||||
|
||||
const config = await new ConfigManager({}).getConfig();
|
||||
const base_url = config.http.base_url;
|
||||
|
||||
let token: Token;
|
||||
|
|
|
|||
|
|
@ -10,10 +10,9 @@ import type { APIAccount } from "~types/entities/account";
|
|||
import type { APIAsyncAttachment } from "~types/entities/async_attachment";
|
||||
import type { APIContext } from "~types/entities/context";
|
||||
import type { APIStatus } from "~types/entities/status";
|
||||
import { ConfigManager } from "config-manager";
|
||||
import { config } from "config-manager";
|
||||
import { sendTestRequest, wrapRelativeUrl } from "~tests/utils";
|
||||
|
||||
const config = await new ConfigManager({}).getConfig();
|
||||
const base_url = config.http.base_url;
|
||||
|
||||
let token: Token;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue