Restructured the application routes to be more robust.