import sendRequestAndGetResponse from './sendRequestAndGetResponse' ; const BASE_PATH = '/api/v1/public' ; export const getUserApiMethod = ( request ) => sendRequestAndGetResponse ( `${ BASE_PATH }/get-user` , { request , method : 'GET' , } ) ; export const getUserBySlugApiMethod = ( slug ) => sendRequestAndGetResponse ( `${ BASE_PATH }/get-user-by-slug` , { body : JSON . stringify ( { slug } ) , } ) ; export const emailLoginLinkApiMethod = ( { email , invitationToken , } ) => sendRequestAndGetResponse ( '/auth/email-login-link' , { qs : { invitationToken } , body : JSON . stringify ( { user : email } ) , } ) ; export const getTeamByTokenApiMethod = ( token , request ) => sendRequestAndGetResponse ( `${ BASE_PATH }/invitations/get-team-by-token` , { request , method : 'GET' , qs : { token } , } ) ;