mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-13 05:45:41 +08:00
refactor package main (#49)
move the contents of main.go into app package. scaffold a CLI subcommands package. add a version package and add /_version handler to print detailed version info.
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
// ServiceHandler returns an HTTP Handler for the enroll service
|
||||
func MakeHTTPHandler(ctx context.Context, svc Service, logger log.Logger) http.Handler {
|
||||
func ServiceHandler(ctx context.Context, svc Service, logger log.Logger) http.Handler {
|
||||
r := mux.NewRouter()
|
||||
e := MakeServerEndpoints(svc)
|
||||
opts := []httptransport.ServerOption{
|
||||
|
||||
Reference in New Issue
Block a user