refac
This commit is contained in:
1 parent
646b64a318
commit
44ab77b4f5
1 file changed
+1
-3
@@ -13,9 +13,7 @@ export type TerminalServer = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTerminalServers = async (
|
export const getTerminalServers = async (token: string): Promise<TerminalServer[]> => {
|
||||||
token: string
|
|
||||||
): Promise<TerminalServer[]> => {
|
|
||||||
const res = await fetch(`${WEBUI_API_BASE_URL}/terminals/`, {
|
const res = await fetch(`${WEBUI_API_BASE_URL}/terminals/`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`
|
Authorization: `Bearer ${token}`
|
||||||
|
|||||||
Reference in new issue
Block a user