mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Fix not working routes
This commit is contained in:
parent
f7abe06a60
commit
df939a6a7a
8 changed files with 146 additions and 69 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// import { server } from "~index";
|
||||
import { server } from "~index";
|
||||
|
||||
/**
|
||||
* This allows us to send a test request to the server even when it isnt running
|
||||
|
|
@ -7,9 +7,7 @@
|
|||
* @returns Response from the server
|
||||
*/
|
||||
export async function sendTestRequest(req: Request) {
|
||||
console.log(req);
|
||||
return fetch(req);
|
||||
// return server.fetch(req);
|
||||
return server.fetch(req);
|
||||
}
|
||||
|
||||
export function wrapRelativeUrl(url: string, base_url: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue