Example of Web Apps that use a GET request?

heres a “practical” example

It doesn’t do the DB call but it shows how you’d get a token and use that token to see if another user logging into the site/tool is a moderator or not.

You would not normally do a “plain vanilla JS Fetch request” here for the work flow described in you image.

Sure you would use a button + vanilla JS fetch request to instruct the backend to go collect moderators.
But you wouldn’t use a button + vanilla JS fetch request to go collect moderators

1 Like