// Internal handler for running the route, that way different functions can be exposed but all handled the same.
Internal handler for running the route, that way different functions can be exposed but all handled the same.
// Internal handler for running the route that way different functions can be exposed but all handled the same .
func (m *Milo) runRoute(w http.ResponseWriter, r *http.Request, hf http.HandlerFunc, path string) {
	defer handleError(m, w, r)
	m.logger.LogInterfaces("Path:", path)
	shouldContinue := m.runBeforeMiddleware(w, r)
	if !shouldContinue {
		return
	}
	hf(w, r)
	m.runAfterMiddlware(w, r)
}
func ( m * Milo ) runRoute ( w http . ResponseWriter , r * http . Request , hf http . HandlerFunc , path string ) { defer handleError ( m , w , r ) m . logger . LogInterfaces ( " " , path ) shouldContinue := m . runBeforeMiddleware ( w , r ) if ! shouldContinue { return } hf ( w , r ) m . runAfterMiddlware ( w , r ) }
Internal handler for running the route, that way different functions can be exposed but all handled the same.
Internal handler for running the route that way different functions can be exposed but all handled the same .
// Writing out a request log // Something happend in the global middleware and we don't want to continue // This is under the assumption that the middleware handled everything. // Call registered handler