tailwind + ky + backend oauth connection

This commit is contained in:
grngxd 2025-06-07 23:34:27 +01:00
parent bb557f1fb7
commit 5cc652b0af
8 changed files with 160 additions and 19 deletions

View file

@ -0,0 +1,12 @@
import type { RequestHandler } from '@builder.io/qwik-city';
import ky from 'ky';
export const onGet: RequestHandler = async ({ send, pathname, request }) => {
const res = await ky.get(`http://localhost:8081${pathname}`, {
method: request.method,
headers: request.headers,
body: request.method === 'GET' ? null : request.body,
});
send(res);
};