mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-18 14:21:31 +08:00
19 lines
512 B
TypeScript
19 lines
512 B
TypeScript
import axios from 'api';
|
|
import { ErrorResponse, SuccessResponse } from 'types/api';
|
|
import { GetAllUserPreferencesResponseProps } from 'types/api/preferences/userOrgPreferences';
|
|
|
|
const getAllUserPreferences = async (): Promise<
|
|
SuccessResponse<GetAllUserPreferencesResponseProps> | ErrorResponse
|
|
> => {
|
|
const response = await axios.get(`/user/preferences`);
|
|
|
|
return {
|
|
statusCode: 200,
|
|
error: null,
|
|
message: response.data.status,
|
|
payload: response.data,
|
|
};
|
|
};
|
|
|
|
export default getAllUserPreferences;
|