Move route logic to controllers