mirror of
https://github.com/YunoHost/yunohost-portal.git
synced 2024-09-03 20:06:23 +02:00
2 lines
178 B
TypeScript
2 lines
178 B
TypeScript
export const useApiEndpoint = () => "https://" + window.location.hostname + '/yunohost/portalapi'
|
|
export const useIsLoggedIn = () => useState<boolean>('isLoggedIn', () => false)
|