Last active
April 19, 2022 12:31
-
-
Save henryruhs/71669e5d40fd9d796917e0ba1f6ac905 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import environment from '../../../environments/environment'; | |
export default class ExampleService | |
{ | |
read(id) | |
{ | |
const url = new URL(environment.apiRoutes.example + '/' + id, environment.apiUrl); | |
return fetch(url.toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment