Compare commits
2 Commits
9bc4b463ef
...
6bf5a48d3f
Author | SHA1 | Date | |
---|---|---|---|
6bf5a48d3f | |||
b146ef3170 |
4
go.mod
4
go.mod
@ -1,3 +1,5 @@
|
|||||||
module deadbeef.codes/steven/ynab-portfolio-monitor
|
module deadbeef.codes/steven/ynab-portfolio-monitor
|
||||||
|
|
||||||
go 1.21.4
|
go 1.22
|
||||||
|
|
||||||
|
// Goal is no third party dependencies
|
@ -149,6 +149,7 @@
|
|||||||
</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>
|
||||||
|
|
||||||
|
@ -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)
|
//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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user