working commit
This commit is contained in:
+3
-3
@@ -239,10 +239,10 @@ func (hand *Handler) DeleteCollection(rctx *router.Context) {
|
||||
params := &operator.DeleteColletionParams{
|
||||
Path: cpath,
|
||||
}
|
||||
err := rctx.BindQuery(params)
|
||||
err := rctx.BindQuery(params)
|
||||
if err != nil {
|
||||
hand.logg.Errorf("DeleteColletion binding error: %v", err)
|
||||
rctx.SetStatus(http.StatusInternalServerError)
|
||||
hand.logg.Errorf("DeleteColletion binding error: %v", err)
|
||||
rctx.SetStatus(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -358,8 +358,8 @@ func (oper *Operator) ListCollections(ctx context.Context, operID string, param
|
||||
|
||||
// DeleteColletion
|
||||
type DeleteColletionParams struct {
|
||||
Path string
|
||||
IsPattern bool `params:"isPattern"`
|
||||
Path string
|
||||
IsPattern bool `params:"isPattern"`
|
||||
}
|
||||
type DeleteColletionResult struct {
|
||||
Files []descr.File `json:"collection,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user