mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-05 16:44:22 +00:00
Add cors middleware
This commit is contained in:
@@ -32,7 +32,7 @@ func main() {
|
||||
instanceManager := llamactl.NewInstanceManager(config.Instances)
|
||||
|
||||
// Create a new handler with the instance manager
|
||||
handler := llamactl.NewHandler(instanceManager)
|
||||
handler := llamactl.NewHandler(instanceManager, config)
|
||||
|
||||
// Setup the router with the handler
|
||||
r := llamactl.SetupRouter(handler)
|
||||
|
||||
Reference in New Issue
Block a user