1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00
This commit is contained in:
mike12345567 2021-06-21 18:40:36 +01:00
parent f4757aeee1
commit c87b960ebf

View file

@ -11,10 +11,14 @@ async function redirect(ctx, method) {
const { devPath } = ctx.params
const response = await fetch(
checkSlashesInUrl(`${env.WORKER_URL}/api/admin/${devPath}`),
request(ctx, {
method,
body: ctx.request.body,
}, true)
request(
ctx,
{
method,
body: ctx.request.body,
},
true
)
)
if (response.status !== 200) {
ctx.throw(response.status, response.statusText)