mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-02 14:28:18 +00:00
9 lines
274 B
TypeScript
9 lines
274 B
TypeScript
import { getRequest } from '@datahub/utils/api/fetcher';
|
|
const logoutUrl = '/logout';
|
|
|
|
/**
|
|
* Calls the logout endpoint to log out the currently logged in user
|
|
* @return {Promise<Response>}
|
|
*/
|
|
export const logout = (): Promise<Response> => getRequest({ url: logoutUrl });
|