// configure installs a configuration handler at path. func configure(path string, handler http.Handler) { if *allowCORS { handler = cors.NewHandler(handler) } http.Handle(filepath.Join(*api, path), handler) }
// configure installs a configuration handler at path. func configure(path string, handler http.Handler) { if *allowCORS { handler = cors.NewHandler(handler) } http.Handle(path, handler) }