api routes GET returning 404
so im creating new project using Basic + Clerk Auth from docs, after that im tryin to add api
/api/getAllCCTV
this is the code
when i try to access from browser, i got error 404, i see on the log it said like this
ServerFn Request: src_routes_root_tsx--fetchClerkAuth_createServerFn_handler, ServerFn Response: 200
whats wrong with it ? do i need to exclude /api on beforeLoad at _root.tsx ?1 Reply
flat-fuchsia•6mo ago
can you please provide a complete minimal example?