mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-08 21:44:32 +02:00
Add an email registration policy feature - Closes #250
This commit is contained in:
15
resources/js/services/appSettingService.js
vendored
15
resources/js/services/appSettingService.js
vendored
@ -3,6 +3,14 @@ import { httpClientFactory } from '@/services/httpClientFactory'
|
||||
const apiClient = httpClientFactory('api')
|
||||
|
||||
export default {
|
||||
/**
|
||||
*
|
||||
* @returns
|
||||
*/
|
||||
get(config = {}) {
|
||||
return apiClient.get('/settings', { ...config })
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns
|
||||
@ -11,4 +19,11 @@ export default {
|
||||
return apiClient.put('/settings/' + name, { value: value })
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns
|
||||
*/
|
||||
delete(name, config = {}) {
|
||||
return apiClient.delete('/settings/' + name, { ...config })
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user