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

Refactor controller to use functional routing #7809

Merged
merged 4 commits into from
Sep 25, 2024

Commits on Sep 24, 2024

  1. Refactor controller to use functional routing

    Replaces the annotation-based controller with a functional routing approach. Introduces a `RouterFunction` bean to handle HTTP requests, eliminates redundant response creation, and improves efficiency by directly parsing path variables.
    nathphon.jeamjit committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    55c50b0 View commit details
    Browse the repository at this point in the history
  2. Refactor route definitions in BenchmarkRouter

    Simplified the route definitions by using lambda expressions directly in the RouterFunction. This reduces unnecessary method declarations and enhances readability.
    nathphon.jeamjit committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    044f195 View commit details
    Browse the repository at this point in the history
  3. Rename BenchmarkRouter class to BenchmarkController

    This change aligns the class name with its intended functionality. The class was previously named incorrectly, which could cause confusion. The new name clarifies its role as a controller within the Spring WebFlux framework.
    nathphon.jeamjit committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    7a6b283 View commit details
    Browse the repository at this point in the history
  4. Rename package from router to controller

    This change corrects a package naming inconsistency in the BenchmarkController class. The package was previously listed incorrectly as "router" and has been updated to "controller" to reflect its actual content and functionality.
    nathphon.jeamjit committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f7b38cb View commit details
    Browse the repository at this point in the history