moved shared routes into own class. fixed thoughts/:id route to be digits only