mirror of
https://github.com/getbible/app.git
synced 2024-05-30 17:40:47 +00:00
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
// TO DO
|
|
// these should be imported from root config file
|
|
|
|
let BASE_URL = 'https://getbible.net';
|
|
let API_VERSION = 'v2';
|
|
|
|
|
|
export default {
|
|
get_translations(){
|
|
return fetch(`${BASE_URL}/${API_VERSION}/translations.json`)
|
|
},
|
|
get_translation(abbreviation){
|
|
return fetch(`${BASE_URL}/${API_VERSION}/${abbreviation}.json`)
|
|
}
|
|
} |