added router dependency injection to server