
from app import app
import config

from rest_api.controller import rest_blueprint
app.register_blueprint(rest_blueprint)

if __name__ == "__main__":
    app.run()


from app import app
import config

from rest_api.controller import rest_blueprint
app.register_blueprint(rest_blueprint, url_prefix="/api")

if __name__ == "__main__":
    app.run()

Move all api routes into /api/
Move all api routes into /api/

  
  from app import app
  import config
  
  from rest_api.controller import rest_blueprint
- app.register_blueprint(rest_blueprint)
+ app.register_blueprint(rest_blueprint, url_prefix="/api")
  
  if __name__ == "__main__":
      app.run()
  
Move all api routes into /api/
## Code Before:

from app import app
import config

from rest_api.controller import rest_blueprint
app.register_blueprint(rest_blueprint)

if __name__ == "__main__":
    app.run()

## Instruction:
Move all api routes into /api/
## Code After:

from app import app
import config

from rest_api.controller import rest_blueprint
app.register_blueprint(rest_blueprint, url_prefix="/api")

if __name__ == "__main__":
    app.run()
