Compare commits

..

No commits in common. "6bf5a48d3f4f95b786149be7485b7965b8720df3" and "9bc4b463efbd017e9f5ad68aef9f6850a7c29e41" have entirely different histories.

3 changed files with 1 additions and 6 deletions

4
go.mod
View File

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

View File

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

View File

@ -35,8 +35,6 @@ func homePageHandler(w http.ResponseWriter, r *http.Request) {
//http.Redirect(w, r, fmt.Sprintf("https://app.ynab.com/%s", ynabClient.BudgetID), http.StatusSeeOther) //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) { func statusHandler(w http.ResponseWriter, r *http.Request) {
refreshRunning.Lock() refreshRunning.Lock()
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)