Move express app config to first init for endpoint creation