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:
@@ -15,11 +15,13 @@ import (
|
||||
|
||||
type Handler struct {
|
||||
InstanceManager InstanceManager
|
||||
config Config
|
||||
}
|
||||
|
||||
func NewHandler(im InstanceManager) *Handler {
|
||||
func NewHandler(im InstanceManager, config Config) *Handler {
|
||||
return &Handler{
|
||||
InstanceManager: im,
|
||||
config: config,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user