Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto generate route name #2928

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Mar 25, 2024

  1. Enhance route naming system in Sanic mixins

    Sanic mixins have been updated to support more informative route naming. `_generate_name()` is now enhanced to include methods and URIs as part of the route name, providing more context about the route configuration. The update also takes care of potential naming conflicts in different scenarios.
    hamed committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    804c311 View commit details
    Browse the repository at this point in the history
  2. Add auto name generation feature to routes in Sanic

    The ability to automatically generate names for routes has been added to Sanic. This feature is controlled by the 'generate_name' parameter available in the application, blueprint, and route definitions. Additionally, comprehensive tests have been added to ensure the correct functionality of this new feature.
    hamed committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    8c74b6c View commit details
    Browse the repository at this point in the history
  3. Replace 'generate_name' with 'unique_route_name_generate'

    - add new test_case
    hamed committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    9a0b6a2 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Configuration menu
    Copy the full SHA
    7ff7939 View commit details
    Browse the repository at this point in the history