Developed a rest API

This commit is contained in:
Tim Beatham
2023-11-13 10:44:14 +00:00
parent 44f119b45c
commit 5f176e731f
9 changed files with 277 additions and 2 deletions

17
cmd/api/main.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"log"
"github.com/tim-beatham/wgmesh/pkg/api"
)
func main() {
apiServer, err := api.NewSmegServer()
if err != nil {
log.Fatal(err.Error())
}
apiServer.Run(":8080")
}