// Create the API route descriptors.
Create the API route descriptors.
// Create the API route descriptors .
func generateRoutes() Routes {
	return Routes{
		Route{"doParamsGet",
			strings.ToUpper("Get"),
			API_PARAMS,
			doParamsGet,
		},
		Route{"doParamsPatch",
			strings.ToUpper("Patch"),
			API_PARAMS,
			doParamsPatch,
		},
		Route{"doDumpCfgPost",
			strings.ToUpper("Post"),
			API_DUMPCFG,
			doDumpCfgPost,
		},
		Route{"doLoadCfgPost",
			strings.ToUpper("Post"),
			API_LOADCFG,
			doLoadCfgPost,
		},
		Route{"doCfgGet",
			strings.ToUpper("Get"),
			API_CFG + "/{xname}",
			doCfgGet,
		},
		Route{"doCfgPost",
			strings.ToUpper("Post"),
			API_CFG + "/{xname}",
			doCfgPost,
		},
		Route{"doDiscreetCredsPost",
			strings.ToUpper("Post"),
			API_DCREDS,
			doDiscreetCredsPost,
		},
		Route{"doCredsPostOne",
			strings.ToUpper("Post"),
			API_CREDS + "/{xname}",
			doCredsPostOne,
		},
		Route{"doGlobalCredsPost",
			strings.ToUpper("Post"),
			API_GLB_CREDS,
			doGlobalCredsPost,
		},
		Route{"doCredsGet",
			strings.ToUpper("Get"),
			API_CREDS,
			doCredsGet,
		},
		Route{"doBMCCreateCertsPost",
			strings.ToUpper("Post"),
			API_CRT_CERTS,
			doBMCCreateCertsPost,
		},
		Route{"doBMCDeleteCertsPost",
			strings.ToUpper("Post"),
			API_DEL_CERTS,
			doBMCDeleteCertsPost,
		},
		Route{"doBMCFetchCerts",
			strings.ToUpper("Post"),
			API_FETCH_CERTS,
			doBMCFetchCerts,
		},
		Route{"doBMCSetCertsPost",
			strings.ToUpper("Post"),
			API_SET_CERTS,
			doBMCSetCertsPost,
		},
		Route{"doBMCSetCertsPostSingle",
			strings.ToUpper("Post"),
			API_SET_CERT + "/{xname}",
			doBMCSetCertsPostSingle,
		},
		Route{"doHealthGet",
			strings.ToUpper("Get"),
			API_HEALTH,
			doHealthGet,
		},
		Route{"doLivenessGet",
			strings.ToUpper("Get"),
			API_LIVENESS,
			doLivenessGet,
		},
		Route{"doReadinessGet",
			strings.ToUpper("Get"),
			API_READINESS,
			doReadinessGet,
		},
		Route{"doVersionGet",
			strings.ToUpper("Get"),
			API_VERSION,
			doVersionGet,
		},
	}
}
func generateRoutes ( ) Routes { return Routes { Route { " " , strings . ToUpper ( " " ) , API_PARAMS , doParamsGet , } , Route { " " , strings . ToUpper ( " " ) , API_PARAMS , doParamsPatch , } , Route { " " , strings . ToUpper ( " " ) , API_DUMPCFG , doDumpCfgPost , } , Route { " " , strings . ToUpper ( " " ) , API_LOADCFG , doLoadCfgPost , } , Route { " " , strings . ToUpper ( " " ) , API_CFG + " " , doCfgGet , } , Route { " " , strings . ToUpper ( " " ) , API_CFG + " " , doCfgPost , } , Route { " " , strings . ToUpper ( " " ) , API_DCREDS , doDiscreetCredsPost , } , Route { " " , strings . ToUpper ( " " ) , API_CREDS + " " , doCredsPostOne , } , Route { " " , strings . ToUpper ( " " ) , API_GLB_CREDS , doGlobalCredsPost , } , Route { " " , strings . ToUpper ( " " ) , API_CREDS , doCredsGet , } , Route { " " , strings . ToUpper ( " " ) , API_CRT_CERTS , doBMCCreateCertsPost , } , Route { " " , strings . ToUpper ( " " ) , API_DEL_CERTS , doBMCDeleteCertsPost , } , Route { " " , strings . ToUpper ( " " ) , API_FETCH_CERTS , doBMCFetchCerts , } , Route { " " , strings . ToUpper ( " " ) , API_SET_CERTS , doBMCSetCertsPost , } , Route { " " , strings . ToUpper ( " " ) , API_SET_CERT + " " , doBMCSetCertsPostSingle , } , Route { " " , strings . ToUpper ( " " ) , API_HEALTH , doHealthGet , } , Route { " " , strings . ToUpper ( " " ) , API_LIVENESS , doLivenessGet , } , Route { " " , strings . ToUpper ( " " ) , API_READINESS , doReadinessGet , } , Route { " " , strings . ToUpper ( " " ) , API_VERSION , doVersionGet , } , } }
Create the API route descriptors.
Create the API route descriptors .