MCPcopy
hub / github.com/syncthing/syncthing / getFolderVersions

Method getFolderVersions

lib/api/api.go:1585–1593  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

1583}
1584
1585func (s *service) getFolderVersions(w http.ResponseWriter, r *http.Request) {
1586 qs := r.URL.Query()
1587 versions, err := s.model.GetFolderVersions(qs.Get("folder"))
1588 if err != nil {
1589 http.Error(w, err.Error(), http.StatusInternalServerError)
1590 return
1591 }
1592 sendJSON(w, versions)
1593}
1594
1595func (s *service) postFolderVersionsRestore(w http.ResponseWriter, r *http.Request) {
1596 qs := r.URL.Query()

Callers

nothing calls this directly

Calls 4

sendJSONFunction · 0.85
GetFolderVersionsMethod · 0.65
GetMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected