feat(api): add version route

This commit is contained in:
Julien Neuhart
2024-04-17 09:55:38 +02:00
parent e853cfb98a
commit 2267c5be00
6 changed files with 30 additions and 7 deletions

View File

@@ -35,6 +35,7 @@ var Version = "snapshot"
// Run starts the Gotenberg application. Call this in the main of your program.
func Run() {
fmt.Printf(banner, Version)
gotenberg.Version = Version
// Create the root FlagSet and adds the modules flags to it.
fs := flag.NewFlagSet("gotenberg", flag.ExitOnError)