You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
464 B
16 lines
464 B
|
4 weeks ago
|
import { apiRequestGet } from 'mastodon/api';
|
||
|
|
import type {
|
||
|
|
ApiTermsOfServiceJSON,
|
||
|
|
ApiPrivacyPolicyJSON,
|
||
|
|
} from 'mastodon/api_types/instance';
|
||
|
|
|
||
|
|
export const apiGetTermsOfService = (version?: string) =>
|
||
|
|
apiRequestGet<ApiTermsOfServiceJSON>(
|
||
|
|
version
|
||
|
|
? `v1/instance/terms_of_service/${version}`
|
||
|
|
: 'v1/instance/terms_of_service',
|
||
|
|
);
|
||
|
|
|
||
|
|
export const apiGetPrivacyPolicy = () =>
|
||
|
|
apiRequestGet<ApiPrivacyPolicyJSON>('v1/instance/privacy_policy');
|