adds initializing the router from the api registrations