(w http.ResponseWriter, _ *http.Request)
| 293 | } |
| 294 | |
| 295 | func (s *Server) capabilities(w http.ResponseWriter, _ *http.Request) { |
| 296 | cfg := s.currentConfig() |
| 297 | writeJSON(w, http.StatusOK, map[string]any{ |
| 298 | "version": "0.1.0-web", |
| 299 | "platform": platformName(), |
| 300 | "authRequired": strings.TrimSpace(cfg.AuthToken) != "", |
| 301 | "supportsSessionLogin": true, |
| 302 | "browseRootsEnforced": !cfg.AllowUnscopedBrowse, |
| 303 | "supportsVaultSelection": true, |
| 304 | "supportsDirectoryBrowsing": true, |
| 305 | "supportsWatch": true, |
| 306 | }) |
| 307 | } |
| 308 | |
| 309 | func (s *Server) platform(w http.ResponseWriter, _ *http.Request) { |
| 310 | writeJSON(w, http.StatusOK, map[string]string{"platform": platformName()}) |
nothing calls this directly
no test coverage detected