This commit is contained in:
@@ -35,6 +35,8 @@ func homePageHandler(w http.ResponseWriter, r *http.Request) {
|
||||
//http.Redirect(w, r, fmt.Sprintf("https://app.ynab.com/%s", ynabClient.BudgetID), http.StatusSeeOther)
|
||||
}
|
||||
|
||||
// Returns status 200 if a refresh is not running, otherwise waits for refresh to finish
|
||||
// Can be used by clients to tell when a refresh finishes
|
||||
func statusHandler(w http.ResponseWriter, r *http.Request) {
|
||||
refreshRunning.Lock()
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
Reference in New Issue
Block a user