Linting.
This commit is contained in:
parent
f4757aeee1
commit
c87b960ebf
|
@ -11,10 +11,14 @@ async function redirect(ctx, method) {
|
||||||
const { devPath } = ctx.params
|
const { devPath } = ctx.params
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
checkSlashesInUrl(`${env.WORKER_URL}/api/admin/${devPath}`),
|
checkSlashesInUrl(`${env.WORKER_URL}/api/admin/${devPath}`),
|
||||||
request(ctx, {
|
request(
|
||||||
method,
|
ctx,
|
||||||
body: ctx.request.body,
|
{
|
||||||
}, true)
|
method,
|
||||||
|
body: ctx.request.body,
|
||||||
|
},
|
||||||
|
true
|
||||||
|
)
|
||||||
)
|
)
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
ctx.throw(response.status, response.statusText)
|
ctx.throw(response.status, response.statusText)
|
||||||
|
|
Loading…
Reference in New Issue