mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
refactor: ⬆️ Upgrade dependencies, use JSR for Hono
This commit is contained in:
parent
57b295ccf2
commit
939815510c
109 changed files with 183 additions and 180 deletions
|
|
@ -17,14 +17,16 @@ if (config.sonic.enabled) {
|
|||
await searchManager.connect();
|
||||
}
|
||||
|
||||
const app = await appFactory();
|
||||
|
||||
/**
|
||||
* This allows us to send a test request to the server even when it isnt running
|
||||
* @param req Request to send
|
||||
* @returns Response from the server
|
||||
*/
|
||||
export async function sendTestRequest(req: Request): Promise<Response> {
|
||||
export function sendTestRequest(req: Request): Promise<Response> {
|
||||
// return fetch(req);
|
||||
return Promise.resolve((await appFactory()).fetch(req));
|
||||
return Promise.resolve(app.fetch(req));
|
||||
}
|
||||
|
||||
export function wrapRelativeUrl(url: string, baseUrl: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue