Changed so our client now uses our new endpoint for searching lists.
This commit is contained in:
@@ -32,21 +32,12 @@ class SearchRequest extends React.Component {
|
|||||||
scrollHasMore: true
|
scrollHasMore: true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.allowedListTypes = [
|
this.allowedListTypes = ['discover', 'popular', 'nowplaying', 'upcoming']
|
||||||
'discover', 'popular', 'nowplaying', 'upcoming'
|
|
||||||
]
|
|
||||||
|
|
||||||
this.baseUrl = 'https://apollo.kevinmidboe.com/api/v1/tmdb/';
|
this.baseUrl = 'https://apollo.kevinmidboe.com/api/v1/tmdb/list';
|
||||||
// this.baseUrl = 'http://localhost:31459/api/v1/tmdb/';
|
// this.baseUrl = 'http://localhost:31459/api/v1/tmdb/list';
|
||||||
|
this.searchUrl = 'https://apollo.kevinmidboe.com/api/v1/plex/request';
|
||||||
this.URLs = {
|
// this.searchUrl = 'http://localhost:31459/api/v1/plex/request';
|
||||||
searchRequest: 'https://apollo.kevinmidboe.com/api/v1/plex/request',
|
|
||||||
// searchRequest: 'http://localhost:31459/api/v1/plex/request',
|
|
||||||
upcoming: 'https://apollo.kevinmidboe.com/api/v1/tmdb/upcoming',
|
|
||||||
// upcoming: 'http://localhost:31459/api/v1/tmdb/upcoming',
|
|
||||||
sendRequest: 'https://apollo.kevinmidboe.com/api/v1/plex/request?query='
|
|
||||||
// sendRequest: 'http://localhost:31459/api/v1/plex/request?query='
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -234,7 +225,7 @@ class SearchRequest extends React.Component {
|
|||||||
this.state.resultHeader = 'Search result for: ' + this.state.searchQuery;
|
this.state.resultHeader = 'Search result for: ' + this.state.searchQuery;
|
||||||
|
|
||||||
// Build uri with the url for searching requests
|
// Build uri with the url for searching requests
|
||||||
var uri = new URI(this.URLs.searchRequest);
|
var uri = new URI(this.searchUrl);
|
||||||
// Add input of search query and page count to the uri payload
|
// Add input of search query and page count to the uri payload
|
||||||
uri = uri.search({ 'query': this.state.searchQuery, 'page': this.state.page });
|
uri = uri.search({ 'query': this.state.searchQuery, 'page': this.state.page });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user