Add depot, attendant, jetfire, optimus, ota services with kustomize overlays

This commit is contained in:
Chris Rai
2026-01-31 15:35:07 -05:00
parent a0ec642ca1
commit 9a5cb2f547
404 changed files with 38817 additions and 16 deletions

View File

@@ -0,0 +1,25 @@
package server
import (
"net/http"
"github.com/fiskerinc/cloud-services/services/jetfire/handlers"
"github.com/fiskerinc/cloud-services/pkg/httphandlers"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/julienschmidt/httprouter"
)
const port string = ":8077"
func StartHTTPServer() {
router := httprouter.New()
router.PanicHandler = httphandlers.HttpRouterPanicHandler
addHandler(router, http.MethodGet, "/reset", handlers.ResetSchemaDefinitions)
logger.Fatal().AnErr("http.ListenAndServe", http.ListenAndServe(port, router)).Send()
}
func addHandler(router *httprouter.Router, method string, path string, handler http.HandlerFunc) {
router.HandlerFunc(method, httphandlers.HttpRouterHandleBaseURL(path), handler)
}