✨ feat(privacy-policy): Add privacy policy related text and links
This commit is contained in:
@@ -42,6 +42,14 @@ export async function getGlobalConfig(options?: { [key: string]: any }) {
|
||||
});
|
||||
}
|
||||
|
||||
/** Get Privacy Policy GET /v1/common/site/privacy */
|
||||
export async function getPrivacyPolicy(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.PrivacyPolicyConfig }>('/v1/common/site/privacy', {
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get stat GET /v1/common/site/stat */
|
||||
export async function getStat(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetStatResponse }>('/v1/common/site/stat', {
|
||||
|
||||
@@ -32,6 +32,7 @@ export async function appleLoginCallback(
|
||||
return request<API.Response & { data?: any }>('/v1/auth/oauth/callback/apple', {
|
||||
method: 'POST',
|
||||
data: formData,
|
||||
requestType: 'form',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
+4
@@ -309,6 +309,10 @@ declare namespace API {
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
type PrivacyPolicyConfig = {
|
||||
privacy_policy: string;
|
||||
};
|
||||
|
||||
type PubilcRegisterConfig = {
|
||||
stop_register: boolean;
|
||||
enable_ip_register_limit: boolean;
|
||||
|
||||
Reference in New Issue
Block a user