mirror of
https://github.com/getbible/app.git
synced 2024-12-22 15:58:55 +00:00
added methods for communicating with the getbible api
This commit is contained in:
parent
8875d615f7
commit
6ab9deac1a
15
src/api/getbible_v2_api.js
Normal file
15
src/api/getbible_v2_api.js
Normal file
@ -0,0 +1,15 @@
|
||||
// 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`)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user