TanStackT
TanStack11mo ago
22 replies
good-rose

Non API/API routes?

Is there a way to have something like API routes even though it's not part of an API. An example of this would be the OpenID connect protocol or OAuth2 protocol for authentication. For example Google calls a callback that needs to be a GET but Apple wants to call a POST and pass me the data in form-data format. Is there a way to just have a GET/POST handler that then redirects to the rest of the website?

Thanks
Was this page helpful?