mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-09 08:29:53 +00:00
implement po_token extractor args
This commit is contained in:
9
frontend/src/api/actions/deletePoToken.ts
Normal file
9
frontend/src/api/actions/deletePoToken.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import APIClient from '../../functions/APIClient';
|
||||
|
||||
const deletePoToken = async () => {
|
||||
return APIClient('/api/appsettings/potoken/', {
|
||||
method: 'DELETE',
|
||||
});
|
||||
};
|
||||
|
||||
export default deletePoToken;
|
||||
10
frontend/src/api/actions/updatePoToken.ts
Normal file
10
frontend/src/api/actions/updatePoToken.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import APIClient from '../../functions/APIClient';
|
||||
|
||||
const updatePoToken = async (potoken: string) => {
|
||||
return APIClient('/api/appsettings/potoken/', {
|
||||
method: 'POST',
|
||||
body: { potoken },
|
||||
});
|
||||
};
|
||||
|
||||
export default updatePoToken;
|
||||
@@ -21,6 +21,7 @@ export type AppSettingsConfigType = {
|
||||
comment_max: string | null;
|
||||
comment_sort: string;
|
||||
cookie_import: boolean;
|
||||
potoken: boolean;
|
||||
throttledratelimit: number | null;
|
||||
extractor_lang: string | null;
|
||||
integrate_ryd: boolean;
|
||||
|
||||
Reference in New Issue
Block a user