feat(api): probe existing account + persist per-account folder mapping
This commit is contained in:
@@ -27,6 +27,8 @@ func (s *Server) Router() http.Handler {
|
||||
api.HandleFunc("POST /api/tasks/{id}/test", s.handleTestAccounts)
|
||||
api.HandleFunc("POST /api/tasks/{id}/run", s.handleRun)
|
||||
api.HandleFunc("POST /api/tasks/{id}/accounts/{accountId}/cancel", s.handleCancelAccount)
|
||||
api.HandleFunc("POST /api/tasks/{id}/accounts/{accountId}/probe", s.handleProbeAccountFolders)
|
||||
api.HandleFunc("PUT /api/tasks/{id}/accounts/{accountId}/folder-mapping", s.handleSetAccountFolderMapping)
|
||||
mux.Handle("/api/", s.requireAuth(api))
|
||||
mux.Handle("/ws", s.requireAuth(http.HandlerFunc(s.handleWS)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user