basic status page, move config into data dir

This commit is contained in:
Carl Pearson
2024-10-17 05:44:41 -06:00
parent 57ba3767d1
commit 38689752bd
11 changed files with 130 additions and 65 deletions

17
handlers/footer.go Normal file
View File

@@ -0,0 +1,17 @@
package handlers
import "ytdlp-site/config"
type Footer struct {
BuildDate string
BuildId string
BuildIdShort string
}
func MakeFooter() Footer {
return Footer{
BuildDate: config.GetBuildDate(),
BuildId: config.GetGitSHA(),
BuildIdShort: config.GetGitSHA()[0:7],
}
}