Private
Public Access
algunos refactors y arregle el tema de que no se eliminaban los
subgrupos
This commit is contained in:
1 parent
ab88be0ba5
commit
df2412f29a
25 files changed
+415
-261
No files matched your search
@@ -10,7 +10,8 @@ async function handleResponse<T>(response: Response): Promise<T> {
|
||||
return response.json();
|
||||
}
|
||||
|
||||
export async function obtenerGrupos(): Promise<Grupo[]> {
|
||||
export async function obtenerGrupos(fetch?: Function): Promise<Grupo[]> {
|
||||
if (!fetch) fetch = window.fetch;
|
||||
const response = await fetch(`${API_URL}/grupos`, {
|
||||
headers: { Authorization: `Bearer ${getToken()}` }
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user