Add swagger docs

This commit is contained in:
2025-07-17 21:26:49 +02:00
parent 828ad0ec64
commit 1e962438bf
7 changed files with 347 additions and 2 deletions

View File

@@ -1,18 +1,20 @@
package main
import (
"fmt"
llamactl "llamactl/pkg"
"net/http"
)
// @title Llama Server Control
// @title llamactl API
// @version 1.0
// @description This is a control server for managing Llama Server instances.
// @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)
}