basic status page, move config into data dir
This commit is contained in:
17
handlers/footer.go
Normal file
17
handlers/footer.go
Normal 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],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user