Improve '/bet' route logic