Move tickets endpoint to its own file