Hooking route for getting courses