Using a single router for api and ui