You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's best to make your if-conditions in the router.js as specific as possible. This can prevent bugs if you're adding more routes later on. For example:
else if (endpoint.includes("public")) would be better as else if (endpoint.startsWith(“public")) as there might be other endpoints in the future which include the word public
the if-statement for your API calls, can be more specific as well. At the moment, this catches any route that includes q. You could use “/?q” instead
The text was updated successfully, but these errors were encountered:
It's best to make your if-conditions in the router.js as specific as possible. This can prevent bugs if you're adding more routes later on. For example:
else if (endpoint.includes("public"))
would be better aselse if (endpoint.startsWith(“public"))
as there might be other endpoints in the future which include the word publicthe if-statement for your API calls, can be more specific as well. At the moment, this catches any route that includes q. You could use “/?q” instead
The text was updated successfully, but these errors were encountered: