mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 00:39:28 +00:00
15 lines
321 B
TypeScript
15 lines
321 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
export type CookieStateType = {
|
|
cookie_enabled: boolean;
|
|
status?: boolean;
|
|
validated?: number;
|
|
validated_str?: string;
|
|
};
|
|
|
|
const loadCookie = async (): Promise<CookieStateType> => {
|
|
return APIClient('/api/appsettings/cookie/');
|
|
};
|
|
|
|
export default loadCookie;
|