feat(par): 管理后台增加 PSK 管理页面
- 新增 /psks 页面:列表展示、生成新PSK、启用/禁用、复制密钥 - 版本号唯一,密钥支持手动输入或随机生成 - 侧边菜单增加「PSK 管理」入口
This commit is contained in:
@@ -45,7 +45,11 @@ export default {
|
||||
users: {
|
||||
list: () => api.get('/admin/accounts'),
|
||||
setTrustLevel: (id, level) => api.post(`/admin/accounts/${id}/trust-level`, null, { params: { level } }),
|
||||
|
||||
},
|
||||
psks: {
|
||||
list: () => api.get('/admin/psks'),
|
||||
add: (data) => api.post('/admin/psks', data),
|
||||
toggle: (id) => api.post(`/admin/psks/${id}/toggle`)
|
||||
},
|
||||
health: () => api.get('/health', { baseURL: '' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user