2024-06-13 23:56:03 +03:00
|
|
|
package main
|
|
|
|
|
2024-06-14 20:04:23 +03:00
|
|
|
import (
|
|
|
|
"skunkyart/app"
|
2024-08-13 15:59:52 +03:00
|
|
|
"skunkyart/static"
|
2024-08-01 22:48:05 +03:00
|
|
|
"time"
|
2024-06-14 20:04:23 +03:00
|
|
|
|
|
|
|
"git.macaw.me/skunky/devianter"
|
|
|
|
)
|
2024-06-13 23:56:03 +03:00
|
|
|
|
|
|
|
func main() {
|
2024-09-23 09:38:32 +03:00
|
|
|
app.Release.Version = "1.3.2"
|
2024-09-03 15:36:19 +03:00
|
|
|
app.Release.Description = "Two API endpoints and template embedding into binary"
|
2024-08-01 22:48:05 +03:00
|
|
|
go app.RefreshInstances()
|
|
|
|
|
|
|
|
app.ExecuteCommandLineArguments()
|
2024-07-06 00:46:25 +03:00
|
|
|
app.ExecuteConfig()
|
2024-08-13 15:59:52 +03:00
|
|
|
static.CopyTemplatesToMemory()
|
2024-08-01 22:48:05 +03:00
|
|
|
|
|
|
|
go func() {
|
|
|
|
for {
|
|
|
|
err := devianter.UpdateCSRF()
|
|
|
|
if err != nil {
|
|
|
|
println(err.Error())
|
|
|
|
}
|
|
|
|
time.Sleep(12 * time.Hour)
|
|
|
|
}
|
|
|
|
}()
|
2024-06-14 20:04:23 +03:00
|
|
|
|
2024-06-13 23:56:03 +03:00
|
|
|
app.Router()
|
|
|
|
}
|