Fix not working routes

This commit is contained in:
Jesse Wierzbinski 2024-04-11 02:12:16 -10:00
parent f7abe06a60
commit df939a6a7a
No known key found for this signature in database
8 changed files with 146 additions and 69 deletions

View file

@ -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) {