File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
backend/app/api/handlers/v1 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ func (ctrl *V1Controller) HandleUserSelfDelete() errchain.HandlerFunc {
121121// @Summary Get user settings
122122// @Tags User
123123// @Produce json
124- // @Success 200 {object} Wrapped{item=map[string]interface{} }
124+ // @Success 200 {object} Wrapped{item=schema.UserSettings }
125125// @Router /v1/users/self/settings [GET]
126126// @Security Bearer
127127func (ctrl * V1Controller ) HandleUserSelfSettingsGet () errchain.HandlerFunc {
@@ -132,6 +132,7 @@ func (ctrl *V1Controller) HandleUserSelfSettingsGet() errchain.HandlerFunc {
132132 return validate .NewRequestError (err , http .StatusInternalServerError )
133133 }
134134
135+ w .Header ().Set ("Cache-Control" , "no-store" )
135136 return server .JSON (w , http .StatusOK , Wrap (settings ))
136137 }
137138}
You can’t perform that action at this time.
0 commit comments