So I am moving from my previous application where I had a separate Client and Server Project. When adding google authentication I was able to direct the client on a button click to a certain backend url like backend-url/auth/google and inside of my backend in my index.js i had a simple app.get() that handled that route and then i use a google passportjs strategy that then displays the third party google auth screen to the client and then upon a successful login/signup, they are redirected to a call back route in the backend which then redirects the client to a url in the browser.
However, since moving to redwood, I have no clue how to do this. I have a file called graphql.js inside of my functions folder so that i can access graphql at localhost//:8911/graphql but when i tried to add the app.get() inside of graphql.js and handle the button click from the frontend to trigger google auth, it says theres no route to handle that. I tried creating another file in functions and route to it, still no luck. What am i missing here, or do you have any idea how I can implement this in redwood? Does this have to do with the fact that theres a proxy server? Note that for Google auth to work, I must use an href or link to the backend url that handles the google auth, it cannot be an axios or ajax call.