feat: enable all remix future flags
This commit is contained in:
parent
1af292a5b0
commit
f623e7bc66
12 changed files with 391 additions and 419 deletions
|
|
@ -43,16 +43,12 @@ export async function loader() {
|
|||
export async function action({ request }: ActionFunctionArgs) {
|
||||
const session = await getSession(request.headers.get('Cookie'))
|
||||
if (!session.has('hsApiKey')) {
|
||||
return json({ success: false }, {
|
||||
status: 401,
|
||||
})
|
||||
return send({ success: false }, 401)
|
||||
}
|
||||
|
||||
const context = await loadContext()
|
||||
if (!context.config.write) {
|
||||
return json({ success: false }, {
|
||||
status: 403,
|
||||
})
|
||||
return send({ success: false }, 403)
|
||||
}
|
||||
|
||||
const data = await request.json() as Record<string, unknown>
|
||||
|
|
@ -62,7 +58,7 @@ export async function action({ request }: ActionFunctionArgs) {
|
|||
await context.integration.onConfigChange(context.integration.context)
|
||||
}
|
||||
|
||||
return json({ success: true })
|
||||
return { success: true }
|
||||
}
|
||||
|
||||
export default function Page() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue