only show register if no users, otherwise show only login
This commit is contained in:
parent
daa1323b88
commit
3585ca70e8
6 changed files with 116 additions and 185 deletions
|
@ -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 };
|
Loading…
Add table
Add a link
Reference in a new issue