File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 66export default function ( baseApi ) {
77 return {
88 api : {
9- shows : `${ baseApi } /shows/{ showId} ` ,
10- episodes : `${ baseApi } /shows/{ showId} /episodes` ,
11- cast : `${ baseApi } /shows/{ showId} /cast` ,
9+ shows : `${ baseApi } /shows/: showId` ,
10+ episodes : `${ baseApi } /shows/: showId/episodes` ,
11+ cast : `${ baseApi } /shows/: showId/cast` ,
1212 } ,
1313 isProduction : true ,
1414 isDevelopment : false ,
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ import EffectUtility from '../../utilities/EffectUtility';
88
99export default class ShowsEffect {
1010 static async requestShow ( showId ) {
11- const endpoint = environment . api . shows . replace ( '{ showId} ' , showId ) ;
11+ const endpoint = environment . api . shows . replace ( ': showId' , showId ) ;
1212
1313 return EffectUtility . getToModel ( ShowModel , endpoint ) ;
1414 }
1515
1616 static async requestEpisodes ( showId ) {
17- const endpoint = environment . api . episodes . replace ( '{ showId} ' , showId ) ;
17+ const endpoint = environment . api . episodes . replace ( ': showId' , showId ) ;
1818
1919 return EffectUtility . getToModel ( EpisodeModel , endpoint ) ;
2020 }
2121
2222 static async requestCast ( showId ) {
23- const endpoint = environment . api . cast . replace ( '{ showId} ' , showId ) ;
23+ const endpoint = environment . api . cast . replace ( ': showId' , showId ) ;
2424
2525 // Below is just to show you what the above "requestEpisodes" method is doing with "HttpUtility.getToModel".
2626 // In your application you can change this to match the "requestEpisodes" method.
You can’t perform that action at this time.
0 commit comments