File tree 2 files changed +26
-28
lines changed
2 files changed +26
-28
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ func EditHook(ctx *context.APIContext) {
145
145
146
146
// DeleteHook delete a system hook
147
147
func DeleteHook (ctx * context.APIContext ) {
148
- // swagger:operation DELETE /amdin /hooks/{id} admin adminDeleteHook
148
+ // swagger:operation DELETE /admin /hooks/{id} admin adminDeleteHook
149
149
// ---
150
150
// summary: Delete a hook
151
151
// produces:
Original file line number Diff line number Diff line change 223
223
}
224
224
}
225
225
},
226
+ "delete": {
227
+ "produces": [
228
+ "application/json"
229
+ ],
230
+ "tags": [
231
+ "admin"
232
+ ],
233
+ "summary": "Delete a hook",
234
+ "operationId": "adminDeleteHook",
235
+ "parameters": [
236
+ {
237
+ "type": "integer",
238
+ "format": "int64",
239
+ "description": "id of the hook to delete",
240
+ "name": "id",
241
+ "in": "path",
242
+ "required": true
243
+ }
244
+ ],
245
+ "responses": {
246
+ "204": {
247
+ "$ref": "#/responses/empty"
248
+ }
249
+ }
250
+ },
226
251
"patch": {
227
252
"consumes": [
228
253
"application/json"
731
756
}
732
757
}
733
758
},
734
- "/amdin/hooks/{id}": {
735
- "delete": {
736
- "produces": [
737
- "application/json"
738
- ],
739
- "tags": [
740
- "admin"
741
- ],
742
- "summary": "Delete a hook",
743
- "operationId": "adminDeleteHook",
744
- "parameters": [
745
- {
746
- "type": "integer",
747
- "format": "int64",
748
- "description": "id of the hook to delete",
749
- "name": "id",
750
- "in": "path",
751
- "required": true
752
- }
753
- ],
754
- "responses": {
755
- "204": {
756
- "$ref": "#/responses/empty"
757
- }
758
- }
759
- }
760
- },
761
759
"/markdown": {
762
760
"post": {
763
761
"consumes": [
You can’t perform that action at this time.
0 commit comments