Linting.
This commit is contained in:
parent
f4757aeee1
commit
c87b960ebf
|
@ -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, {
|
||||
request(
|
||||
ctx,
|
||||
{
|
||||
method,
|
||||
body: ctx.request.body,
|
||||
}, true)
|
||||
},
|
||||
true
|
||||
)
|
||||
)
|
||||
if (response.status !== 200) {
|
||||
ctx.throw(response.status, response.statusText)
|
||||
|
|
Loading…
Reference in New Issue