Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
b0c01ee
1
Parent(s):
200cfca
main.ts
CHANGED
@@ -12,7 +12,7 @@ app.get('/', (c) => c.text('Hello Hono!'));
|
|
12 |
app.post('*', async (c) => {
|
13 |
const url = new URL(c.req.url);
|
14 |
const targetPath = url.pathname + url.search;
|
15 |
-
const targetUrl = `${
|
16 |
|
17 |
const headers = new Headers(c.req.raw.headers);
|
18 |
headers.delete('Authorization');
|
|
|
12 |
app.post('*', async (c) => {
|
13 |
const url = new URL(c.req.url);
|
14 |
const targetPath = url.pathname + url.search;
|
15 |
+
const targetUrl = `${HF_API_URL}${targetPath}`;
|
16 |
|
17 |
const headers = new Headers(c.req.raw.headers);
|
18 |
headers.delete('Authorization');
|