(handlerType string)
| 391 | } |
| 392 | |
| 393 | func handlerTypeWantsAuth(handlerType string) bool { |
| 394 | // TODO(bradfitz): ask the handler instead? This is a bit of a |
| 395 | // weird spot for this policy maybe? |
| 396 | switch handlerType { |
| 397 | case "ui", "search", "jsonsign", "sync", "status", "help", "importer": |
| 398 | return true |
| 399 | } |
| 400 | return false |
| 401 | } |
| 402 | |
| 403 | // A Config is the wrapper around a Perkeep JSON configuration file. |
| 404 | // Files on disk can be in either high-level or low-level format, but |