1

In Python's Flask, there is a feature called blueprints, SO even got a great overview of it. Does Rocket have something similar, so I can better structure my code and not mount each route in main?

keddad
  • 1,398
  • 3
  • 14
  • 35

1 Answers1

3

Rocket has something called route mounting where you can mount a list of subroutes on a given path the documentation for the same can be found at https://rocket.rs/v0.4/guide/overview/#mounting

Neeraj
  • 174
  • 4