unit finish
This commit is contained in:
@@ -19,6 +19,7 @@ import (
|
||||
/******************** internal ********************/
|
||||
"simrs-vx/internal/interface/main-handler/home"
|
||||
installation "simrs-vx/internal/interface/simgos-sync-handler/installation"
|
||||
unit "simrs-vx/internal/interface/simgos-sync-handler/unit"
|
||||
)
|
||||
|
||||
func SetRoutes() http.Handler {
|
||||
@@ -42,5 +43,12 @@ func SetRoutes() http.Handler {
|
||||
"DELETE /{id}": installation.O.Delete,
|
||||
})
|
||||
|
||||
hk.GroupRoutes(prefix+"/v1/unit", r, hk.MapHandlerFunc{
|
||||
"POST /": unit.O.Create,
|
||||
"POST /log": unit.O.CreateLog,
|
||||
"PATCH /{id}": unit.O.Update,
|
||||
"DELETE /{id}": unit.O.Delete,
|
||||
})
|
||||
|
||||
return cmw.SetCors(handlerlogger.SetLog(r))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user