feat(admin): added backend for admin pages
This commit is contained in:
parent
54cfc05b88
commit
56ea7fb7f0
26 changed files with 662 additions and 42 deletions
|
|
@ -3,7 +3,8 @@ import { apiUrl } from "./api";
|
|||
|
||||
export interface Server {
|
||||
name?: string;
|
||||
id: string;
|
||||
id: number;
|
||||
jellyfinServerID: string;
|
||||
errored: boolean;
|
||||
owner: string;
|
||||
url: string;
|
||||
|
|
@ -11,7 +12,7 @@ export interface Server {
|
|||
|
||||
export const getServerList = async (): Promise<Array<Server>> => {
|
||||
console.log("fetching server list");
|
||||
const response = await axios.get<Array<Server>>(`${apiUrl}/servers`, { withCredentials: true });
|
||||
const response = await axios.get<Array<Server>>(`${apiUrl}/servers/all`, { withCredentials: true });
|
||||
|
||||
console.log(response);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue