only show register if no users, otherwise show only login

This commit is contained in:
Wavering Ana 2025-01-29 20:47:04 -05:00
parent daa1323b88
commit 3585ca70e8
6 changed files with 116 additions and 185 deletions

View file

@ -72,4 +72,9 @@ export const getLinkSourceStats = async (id: number) => {
return response.data;
};
export const checkFirstUser = async () => {
const response = await api.get<{ isFirstUser: boolean }>('/auth/check-first-user');
return response.data.isFirstUser;
};
export { api };