feat (restful): Add /api/utils/refresh

The API call does the following:
- Fetch GitHub avatar and update artifact store url
- Revoke all cached resources
This commit is contained in:
Peng-YM
2022-07-11 23:06:40 +08:00
parent 6881148021
commit 2c4e47166d
8 changed files with 37 additions and 14 deletions

View File

@@ -8,4 +8,4 @@ export const GIST_BACKUP_KEY = 'Auto Generated Sub-Store Backup';
export const GIST_BACKUP_FILE_NAME = 'Sub-Store';
export const ARTIFACT_REPOSITORY_KEY = 'Sub-Store Artifacts Repository';
export const RESOURCE_CACHE_KEY = '#sub-store-cached-resource';
export const CACHE_EXPIRATION_TIME_MS = 5 * 60 * 1000;
export const CACHE_EXPIRATION_TIME_MS = 60 * 60 * 1000; // 1 hour