implement po_token extractor args

This commit is contained in:
Simon
2025-01-11 16:39:50 +07:00
parent 2474a6a96b
commit 457f6a0b87
9 changed files with 168 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
import APIClient from '../../functions/APIClient';
const deletePoToken = async () => {
return APIClient('/api/appsettings/potoken/', {
method: 'DELETE',
});
};
export default deletePoToken;

View 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;