fix: sidebar & admin.api
ci-front / build (push) Successful in 2m1s

This commit is contained in:
nikita
2026-04-04 22:58:09 +03:00
parent c73035019f
commit 6b82c99d50
2 changed files with 155 additions and 33 deletions
@@ -85,4 +85,13 @@ export const adminApi = {
headers: { Authorization: getAuthHeader() },
});
},
generateToken: async (label: string): Promise<string> => {
const res = await apiClient.post<{ token: string }>(
"/agents/register-token",
{ label },
{ headers: { Authorization: getAuthHeader() } },
);
return res.data.token;
},
};