feat : update announcement

This commit is contained in:
lukman
2024-08-13 09:33:26 +08:00
parent 9a000d3387
commit 54ccceb12f
10 changed files with 226 additions and 55 deletions

View File

@@ -49,3 +49,7 @@ export const funEditGroup = async (path: string, data: IFormGroup) => {
return await response.json().catch(() => null);
};
export const funGetGroupDivision = async (path?: string) => {
const response = await fetch(`/api/group/get-division${(path) ? path : ''}`, { next: { tags: ['group'] } });
return await response.json().catch(() => null);
}