MansoorM
Convex Community2y ago
11 replies
Mansoor

https 404 not found

import { httpRouter } from 'convex/server'
import { httpAction } from './_generated/server'
const http = httpRouter()

http.route({
path: '/test',
method: 'GET',
handler: httpAction(async (ctx, request) => {
try {
const resll = await request.json()

console.log(resll)
// const data = await ctx.runMutation(internal.user.register, body)

// console.log(data)

return new Response(null, {
status: 200,
})
} catch (err) {
console.error(err)
return new Response('something went wrong', {
status: 400,
})
}
}),
})

------------------------------------------------------

Status
404
VersionHTTP/2
Transferred191 B (58 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionSystem
Was this page helpful?