Is your feature request related to a problem? Please describe.
Main code is becomming large and less and less readable. There's a need for refactoring into smaller chunks, along with few optimizations.
Describe the solution you'd like
Subrouting code should go in separate functions
Wrap allowed routes inside ENUM and validate the type
Look into Generic LogWrapper for better debugging code
Is your feature request related to a problem? Please describe. Main code is becomming large and less and less readable. There's a need for refactoring into smaller chunks, along with few optimizations.
Describe the solution you'd like