Commit 216f9992 authored by Lukas Böhm's avatar Lukas Böhm 🎱
Browse files

fix json content-type

parent 1f5dc7a9
......@@ -162,8 +162,6 @@ func OpenShare(w http.ResponseWriter, r *http.Request) *HTTPError {
return &HTTPError{err, "Can't create directory", 500}
}
// return 201
w.WriteHeader(http.StatusCreated)
return SendJSON(w, newShare)
}
......@@ -252,7 +250,6 @@ func UploadAttachment(w http.ResponseWriter, r *http.Request) *HTTPError {
db.Commit()
}
w.WriteHeader(http.StatusCreated)
return SendJSON(w, att)
}
......
......@@ -26,7 +26,7 @@ paths:
summary: create an open share
operationId: OpenShare
responses:
'201':
'200':
description: new temporary share
content:
application/json:
......@@ -100,7 +100,7 @@ paths:
parameters:
- $ref: '#/components/parameters/id'
responses:
'201':
'200':
description: the attachment
content:
application/json:
......
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