Common resolve for all routes