How to create dynamic subdomains in a Flask application

后端 未结 2 725
野性不改
野性不改 2021-01-15 10:36

I am trying to setup variable route handling in a Flask application such as described in this answer: Dynamic Subdomain Handling in a Web App (Flask)

However, I want

2条回答
  •  旧巷少年郎
    2021-01-15 10:38

    To keep it simple, I redesigned the logic of my application into two distinct parts.

    This way the Flask application only handles the API endpoint logic. The user profile logic is handled by another application. I can now add multiple Resources to the API application without worry about breaking the routing.

提交回复
热议问题