mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: add ability to toggle uptime kuma
This commit is contained in:
parent
aaa8640aaf
commit
2a3da71bad
2 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
package worker
|
||||
|
||||
import "os"
|
||||
|
||||
func StartWorkers() {
|
||||
go StartLastFMWorker()
|
||||
go StartStatusWorker()
|
||||
if os.Getenv("STATUS") == "true" {
|
||||
go StartStatusWorker()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue