Compare commits

...

2 Commits

Author SHA1 Message Date
Steven Polley 6bf5a48d3f Update go.mod to 1.22
continuous-integration/drone/push Build is passing Details
2024-02-17 09:51:20 -07:00
Steven Polley b146ef3170 Add created by steven polley 2024-02-17 09:51:12 -07:00
3 changed files with 6 additions and 1 deletions

4
go.mod
View File

@ -1,3 +1,5 @@
module deadbeef.codes/steven/ynab-portfolio-monitor
go 1.21.4
go 1.22
// Goal is no third party dependencies

View File

@ -149,6 +149,7 @@
</div>
<div class="loader-inner-header">
<h1 style="color:white";>YNAB Portfolio Sync</h1>
<h3 style="color:#fff";>Created by Steven Polley</h3>
</div>
</div>

View File

@ -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)