I don’t quite follow your route use case, but this is one the simplest ways to add an auto increment.