mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Add swagger docs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user