Commit 85240019 authored by stonezdj's avatar stonezdj
Browse files

Remove reset API

parent f8c18e4a
Showing with 0 additions and 19 deletions
+0 -19
......@@ -2697,24 +2697,6 @@ paths:
description: User does not have permission of admin role.
'500':
description: Unexpected internal errors.
/configurations/reset:
post:
summary: Reset system configurations.
description: |
Reset system configurations from environment variables. Can only be accessed by admin user.
tags:
- Products
responses:
'200':
description: Reset system configurations successfully.
'401':
description: User need to log in first.
'403':
description: User does not have permission of admin role.
'415':
$ref: '#/responses/UnsupportedMediaType'
'500':
description: Unexpected internal errors.
/email/ping:
post:
summary: Test connection and authentication with email server.
......
......@@ -102,7 +102,6 @@ func initRouters() {
beego.Router("/api/config/:group", &api.ConfigSettingAPI{}, "get:GetConfigByGroup")
beego.Router("/api/configurations", &api.ConfigAPI{})
beego.Router("/api/configurations/reset", &api.ConfigAPI{}, "post:Reset")
beego.Router("/api/statistics", &api.StatisticAPI{})
beego.Router("/api/replications", &api.ReplicationAPI{})
beego.Router("/api/labels", &api.LabelAPI{}, "post:Post;get:List")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment