pub fn config(cfg: &mut ServiceConfig)
Defines all routes of the backend and which functions they map to.