Phoenix - New Route from User Input - Adding Route Programmatically

I suppose the question is - during Plug execution, how to connect to the point when Phoenix analyses existing routes and give it the new route taken from DB or User Input ?