mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
0.0.11
- Fix redirects to /login for auth required pages - Add handling for 401/429 + No connection responses in API calls - Add background workers for Go (clear out password resets) - Fixed timezone issues
This commit is contained in:
parent
fd615102a8
commit
9866dea36b
33 changed files with 795 additions and 248 deletions
|
@ -12,6 +12,11 @@ import (
|
|||
"gitlab.com/idanoo/go-scrobble/internal/goscrobble"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Set UTC for errything
|
||||
os.Setenv("TZ", "Etc/UTC")
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println("Starting goscrobble")
|
||||
err := godotenv.Load()
|
||||
|
@ -51,8 +56,9 @@ func main() {
|
|||
goscrobble.InitRedis()
|
||||
defer goscrobble.CloseRedisConn()
|
||||
|
||||
// Clear old reset tokens regularly
|
||||
// go goscrobble.ClearTokenTimer()
|
||||
// Start background workers
|
||||
go goscrobble.StartBackgroundWorkers()
|
||||
defer goscrobble.EndBackgroundWorkers()
|
||||
|
||||
// Boot up API webserver \o/
|
||||
goscrobble.HandleRequests(port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue