1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00
This commit is contained in:
mike12345567 2021-06-21 18:40:36 +01:00
parent 44c6b77c55
commit 57d2f349ae

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)