src/server/http/http.go
func NewHTTPServer(address string) (http.Handler, error) {
	router := httprouter.New()
	s := &server{
		router:     router,
		address:    address,
		httpClient: &http.Client{},
	}

	router.GET(getFilePath, s.getFileHandler)
	router.GET(servicePath, s.serviceHandler)

	router.POST(loginPath, s.authLoginHandler)
	router.POST(logoutPath, s.authLogoutHandler)
	router.POST(servicePath, s.serviceHandler)

	router.NotFound = http.HandlerFunc(notFound)
	return s, nil
}
func NewHTTPServer(address string) (http.Handler, error) {
	router := httprouter.New()
	s := &server{
		router:     router,
		address:    address,
		httpClient: &http.Client{},
	}

	router.GET(getFilePath, s.getFileHandler)
	router.GET(servicePath, s.serviceHandler)

	router.POST(loginPath, s.authLoginHandler)
	router.POST(logoutPath, s.authLogoutHandler)
	router.POST(servicePath, s.serviceHandler)

	router.NotFound = http.HandlerFunc(notFound)
	return s, nil
}
func NewHTTPServer ( address string ) ( http . Handler , error ) { router := httprouter . New ( ) s := & server { router : router , address : address , httpClient : & http . Client { } , } router . GET ( getFilePath , s . getFileHandler ) router . GET ( servicePath , s . serviceHandler ) router . POST ( loginPath , s . authLoginHandler ) router . POST ( logoutPath , s . authLogoutHandler ) router . POST ( servicePath , s . serviceHandler ) router . NotFound = http . HandlerFunc ( notFound ) return s , nil }
// NewHTTPServer returns a Pachyderm HTTP server.
NewHTTPServer returns a Pachyderm HTTP server .