problem is that the redirect_uri_mismatch error occurs because the redirect URI used in your application doesn't match the one configured in the Google Cloud Console because you are not specifying the route from where you said you would, I mean you specify one route but Google is getting another one that clearly is not the one you put that's why the mismatch error
Here is a similar problem: