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

@@ -64,7 +64,7 @@ type Flags struct {
Serve bool `long:"serve" description:"Serve the Fabric Rest API"`
ServeOllama bool `long:"serveOllama" description:"Serve the Fabric Rest API with ollama endpoints"`
ServeAddress string `long:"address" description:"The address to bind the REST API" default:":8080"`
ServeApiKey string `long:"apikey" description:"API key used to secure server routes" default:""`
ServeAPIKey string `long:"api-key" description:"API key used to secure server routes" default:""`
Config string `long:"config" description:"Path to YAML config file"`
Version bool `long:"version" description:"Print current version"`
ListExtensions bool `long:"listextensions" description:"List all registered extensions"`