mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
21 lines
458 B
Go
21 lines
458 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
llamactl "llamactl/pkg"
|
|
"net/http"
|
|
)
|
|
|
|
// @title llamactl API
|
|
// @version 1.0
|
|
// @description llamactl is a control server for managing Llama Server instances.
|
|
// @license.name MIT License
|
|
// @license.url https://opensource.org/license/mit/
|
|
// @basePath /api/v1
|
|
func main() {
|
|
r := llamactl.SetupRouter()
|
|
// Start the server with the router
|
|
fmt.Println("Starting llamactl on port 8080...")
|
|
http.ListenAndServe(":8080", r)
|
|
}
|