X-Git-Url: https://git.josue.xyz/?p=VSCPweb%2F.git;a=blobdiff_plain;f=vscpweb.go;fp=vscpweb.go;h=23a07ab6cd6a8b914d258254b17eb393485ceafa;hp=a977ad8f10652aca5689b474aa8cc3af42d00424;hb=0c430bc2b5d3ca0ceb0d35271fc7665fb1b1f447;hpb=e811634060c856248c7c73f49f75df9a50efe0bc diff --git a/vscpweb.go b/vscpweb.go index a977ad8..23a07ab 100644 --- a/vscpweb.go +++ b/vscpweb.go @@ -1,17 +1,17 @@ // This is a system for playing with SDN based openvswitches using a simple web // interface. This project will be combined with a CLI version or probably just // made compatible with a core version in the future. -package vscpweb +package main import ( "fmt" "net/http" hh "healthHandlers" - mh "managementHandlers" - vh "virtualAPIHandlers" - ch "controllerHandlers" - sh "staticHandlers" + //mh "managementHandlers" + //vh "virtualAPIHandlers" + //ch "controllerHandlers" + //sh "staticHandlers" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" @@ -92,6 +92,7 @@ func (s *server) MountHandlers() { //healthRouter.Get("/", )//this renders the health page "/health" //healthRouter.Get("/ping", )// "/rpiping" healthRouter.Get("/masterHealth", hh.MasterHealthHandler) //return a JSON with healt of the master "/free" + healthRouter.Get("/", hh.MasterHealthHandler) //return a JSON with healt of the master "/free" //controllerRouter.Delete("/flow", )//this is an external request "/flowdel" //controllerRouter.Get("/resetflows", )//not sure if here or managementRouter //controllerRouter.Get("/listswitch", )