Skip to content

Commit

Permalink
handle not found post requests (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam authored Jan 12, 2025
1 parent 647589b commit 0864a47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/routes/$.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import { Link, useLocation } from '@remix-run/react'
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'
import { Icon } from '#app/components/ui/icon.tsx'

export async function loader() {
export function loader() {
throw new Response('Not found', { status: 404 })
}

export function action() {
throw new Response('Not found', { status: 404 })
}

Expand Down

0 comments on commit 0864a47

Please sign in to comment.