Currently the call to the Rank serverless function is called by the express server. As the Firebase backend won't be able to call the function and return it to the app, the app will need call the function directly.
Acceptance Criteria:
Move the API call from the Express API into the App.
Create a Pinia action that calls the API to get the rank
Store the rank in Pinia
Display the rank on the screen
When the user loads the home page
A call will be made to the rank serverless function
The response will be stored and then displayed on screen.
Description:
Currently the call to the Rank serverless function is called by the express server. As the Firebase backend won't be able to call the function and return it to the app, the app will need call the function directly.
Acceptance Criteria:
Move the API call from the Express API into the App.
Create a Pinia action that calls the API to get the rank
Store the rank in Pinia
Display the rank on the screen
When the user loads the home page