chore: remove cashed
This commit is contained in:
14
frontend/src/api/settings.ts
Normal file
14
frontend/src/api/settings.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import client from './client'
|
||||
|
||||
export interface SettingsMap {
|
||||
[key: string]: string
|
||||
}
|
||||
|
||||
export const getSettings = async (): Promise<SettingsMap> => {
|
||||
const response = await client.get('/settings')
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const updateSetting = async (key: string, value: string, category?: string, type?: string): Promise<void> => {
|
||||
await client.post('/settings', { key, value, category, type })
|
||||
}
|
||||
Reference in New Issue
Block a user