Since we will use fetch in multiple components for our application and we want to reuse code as much as possible, it would be nice to have a method on all of our components that makes a request to the server with a predefined URL.
This a nice use case for a custom Vue plugin! Don't worry, writing a plugin is actually pretty simple.