switched to using api tokens instead of login credentials
This commit is contained in:
parent
86f273d12d
commit
226caf4c1e
13 changed files with 215 additions and 85 deletions
|
|
@ -6,12 +6,10 @@ export interface SearchResult {
|
|||
name: string;
|
||||
id: string;
|
||||
serverId: string;
|
||||
type: SearchResultType;
|
||||
type: string;
|
||||
productionYear: string;
|
||||
}
|
||||
|
||||
export type SearchResultType = "movie" | "tv show" | "music";
|
||||
|
||||
export const search = async (searchTerm: string, serverId: string): Promise<Array<SearchResult>> => {
|
||||
const response = await axios.get<Array<SearchResult>>(`${apiUrl}/search?searchTerm=${searchTerm}&serverId=${serverId}`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue