Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Flask routes to return domain/sub-domains information #5004

Closed
Labels
Milestone
@rimvislt

Description

@rimvislt

Currently when checkingflask routes it provides all routes butit is no way to see which routes are assigned to which subdomain.

Default server name:
SERVER_NAME: 'test.local'

Domains (sub-domains):
test.test.local
admin.test.local
test.local

Adding blueprints:
app.register_blueprint(admin_blueprint,url_prefix='',subdomain='admin')
app.register_blueprint(test_subdomain_blueprint,url_prefix='',subdomain='test')

$ flask routes * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.Endpoint                                                 Methods    Rule-------------------------------------------------------  ---------  ------------------------------------------------admin_blueprint.home                                      GET        /hometest_subdomain_blueprint.home                             GET        /homestatic                                                    GET        /static/<path:filename>...

Feature request
It will be good to see something like below (that will make more clear which route for which subdomain, because now need to go and check configuration).
If it is not possible to fix routes, can you add or tell which method(s) should be used to get below information from flask?

$ flask routes * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.Domain                Endpoint                                             Methods    Rule-----------------   ----------------------------------------------------  ----------  ------------------------------------------------admin.test.local     admin_blueprint.home                                  GET        /hometest.test.local      test_subdomain_blueprint.home                         GET        /hometest.local           static                                                GET        /static/<path:filename>...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp