Compare commits
No commits in common. "a289828c6fcddcd576b871ec0f9ad85ffa4f19fe" and "4dec430c69ea1973ca73527577b83becc949da8e" have entirely different histories.
a289828c6f
...
4dec430c69
|
@ -127,6 +127,5 @@ type AccountPinResponse struct {
|
|||
|
||||
type AccountPin struct {
|
||||
Hash string `json:"hash"`
|
||||
Size uint64 `json:"size"`
|
||||
MimeType string `json:"mime_type"`
|
||||
}
|
||||
|
|
|
@ -197,9 +197,7 @@ func (s *S5API) Routes() (*httprouter.Router, error) {
|
|||
"GET /s5/account": middleware.ApplyMiddlewares(s.accountInfo, middleware.ProxyMiddleware, authMw),
|
||||
"GET /s5/account/stats": middleware.ApplyMiddlewares(s.accountStats, middleware.ProxyMiddleware, authMw),
|
||||
"GET /s5/account/pins.bin": middleware.ApplyMiddlewares(s.accountPinsBinary, middleware.ProxyMiddleware, authMw),
|
||||
"GET /s5/account/pins": middleware.ApplyMiddlewares(s.accountPins, middleware.ProxyMiddleware, defaultCors.Handler, authMw),
|
||||
|
||||
"OPTIONS /s5/account/pins": middleware.ApplyMiddlewares(corsOptionsHandler, middleware.ProxyMiddleware, defaultCors.Handler, authMw),
|
||||
"GET /s5/account/pins": middleware.ApplyMiddlewares(s.accountPins, middleware.ProxyMiddleware, authMw),
|
||||
|
||||
// Upload API
|
||||
"POST /s5/upload": middleware.ApplyMiddlewares(s.smallFileUpload, middleware.ProxyMiddleware, defaultCors.Handler, authMw),
|
||||
|
@ -860,7 +858,6 @@ func (s *S5API) accountPins(jc jape.Context) {
|
|||
}
|
||||
pins[i] = AccountPin{
|
||||
Hash: base64Url,
|
||||
Size: pin.Upload.Size,
|
||||
MimeType: pin.Upload.MimeType,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -909,15 +909,9 @@ components:
|
|||
$ref: '#/components/schemas/AccountPin'
|
||||
AccountPin:
|
||||
type: object
|
||||
required:
|
||||
- hash
|
||||
- size
|
||||
- mime_type
|
||||
properties:
|
||||
hash:
|
||||
type: string
|
||||
size:
|
||||
type: integer
|
||||
mime_type:
|
||||
type: string
|
||||
RegistryQueryResponse:
|
||||
|
|
Loading…
Reference in New Issue