New Fetch function for users that log in. If they log in, they will send POST request with uid via /api/poi/status to Backend server to fetch all marker with completion status. if not log in, fetch to original endpoint (/api/poi) and prevent them to collect by alert them to login first. UX, transition, and redirect can be discussed later.
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[x] Manual test by setup Backend server and connect while login and not login
Checklist before requesting a review
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
Description
New Fetch function for users that log in. If they log in, they will send
POST
request with uid via/api/poi/status
to Backend server to fetch all marker with completion status. if not log in, fetch to original endpoint (/api/poi
) and prevent them to collect by alert them to login first. UX, transition, and redirect can be discussed later.Card Link
https://3.basecamp.com/5802516/buckets/37608217/card_tables/cards/7483000721
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist before requesting a review