refactor: refactor API key middleware based on code review feedback

This commit is contained in:
Harold
2025-04-01 22:47:39 +02:00
parent ceaa90a7c7
commit cd74a96be2
4 changed files with 17 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ func Cli(version string) (err error) {
if currentFlags.Serve {
registry.ConfigureVendors()
err = restapi.Serve(registry, currentFlags.ServeAddress, currentFlags.ServeApiKey)
err = restapi.Serve(registry, currentFlags.ServeAddress, currentFlags.ServeAPIKey)
return
}