SkunkyArt/main.go
2024-09-23 09:38:32 +03:00

32 lines
508 B
Go

package main
import (
"skunkyart/app"
"skunkyart/static"
"time"
"git.macaw.me/skunky/devianter"
)
func main() {
app.Release.Version = "1.3.2"
app.Release.Description = "Two API endpoints and template embedding into binary"
go app.RefreshInstances()
app.ExecuteCommandLineArguments()
app.ExecuteConfig()
static.CopyTemplatesToMemory()
go func() {
for {
err := devianter.UpdateCSRF()
if err != nil {
println(err.Error())
}
time.Sleep(12 * time.Hour)
}
}()
app.Router()
}