Skip to content

Commit 0864a47

Browse files
authored
handle not found post requests (#898)
1 parent 647589b commit 0864a47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/routes/$.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ import { Link, useLocation } from '@remix-run/react'
99
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'
1010
import { Icon } from '#app/components/ui/icon.tsx'
1111

12-
export async function loader() {
12+
export function loader() {
13+
throw new Response('Not found', { status: 404 })
14+
}
15+
16+
export function action() {
1317
throw new Response('Not found', { status: 404 })
1418
}
1519

0 commit comments

Comments
 (0)