switched to using api tokens instead of login credentials

This commit is contained in:
Fishandchips321 2026-02-23 13:27:52 +00:00
parent 86f273d12d
commit 226caf4c1e
13 changed files with 215 additions and 85 deletions

View file

@ -16,6 +16,7 @@ const ServerSearch = ({ searchTerm, server }: ServerSearchProps) => {
search(searchTerm, server.id).then(results => {
setSearchResults(results);
}).catch(err => {
setSearchResults([]);
alert(err);
})
}, [searchTerm]);

View file

@ -12,7 +12,7 @@ const ServerSearchResult = ({ searchResult, server }: ServerSearchResultProps) =
return (
<Link to={resultUrl} target="_blank" rel="noopener noreferrer">
<h3>{searchResult.name} - {searchResult.productionYear}</h3>
<h3>{searchResult.type} - {searchResult.name} - {searchResult.productionYear}</h3>
</Link>
)
}