File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,21 +56,22 @@ class book extends Component<
5656 console . log ( 'Server only call.' ) ;
5757 if ( id ) {
5858 const res = await fetch (
59- `http://localhost:5001/ajonp-ajs-books/us-central1/api/book?id=${ id } `
59+ // Local example http://localhost:5001/ajonp-ajs-books/us-central1/api/
60+ `https://us-central1-ajonp-ajs-books.cloudfunctions.net/api/book?id=${ id } `
6061 ) ;
6162 const json = await res . json ( ) ;
6263 retObj . book = json ;
6364 }
6465 if ( chapterId ) {
6566 const res = await fetch (
66- `http ://localhost:5001/ ajonp-ajs-books/us-central1 /api/chapter?id=${ id } &chapterId=${ chapterId } `
67+ `https ://us-central1- ajonp-ajs-books.cloudfunctions.net /api/chapter?id=${ id } &chapterId=${ chapterId } `
6768 ) ;
6869 const json = await res . json ( ) ;
6970 retObj . chapter = json ;
7071 }
7172 if ( pageId ) {
7273 const res = await fetch (
73- `http ://localhost:5001/ ajonp-ajs-books/us-central1 /api/page?id=${ id } &chapterId=${ chapterId } &pageId=${ pageId } `
74+ `https ://us-central1- ajonp-ajs-books.cloudfunctions.net /api/page?id=${ id } &chapterId=${ chapterId } &pageId=${ pageId } `
7475 ) ;
7576 const json = await res . json ( ) ;
7677 retObj . page = json ;
You can’t perform that action at this time.
0 commit comments