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

Add middleware support for path annotations #37

Merged
merged 1 commit into from Oct 1, 2022

Conversation

bradcypert
Copy link
Contributor

Add in support for Middleware in Path Annotations. This follows the existing guidelines for Middleware in HTTP Verb annotations.

Additionally, these middlewares apply before the HTTP verb middlewares and apply from left to right, just like the HTTP verb middlewares.

@bradcypert bradcypert added documentation Improvements or additions to documentation enhancement New feature or request Router Affecting or involving Steward's router layer. Controllers Affecting or involving Steward's Controller layer. labels Oct 1, 2022
@codecov
Copy link

codecov bot commented Oct 1, 2022

Codecov Report

Merging #37 (72fc60f) into main (38ce1bc) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   84.07%   84.24%   +0.17%     
==========================================
  Files          11       11              
  Lines         270      273       +3     
==========================================
+ Hits          227      230       +3     
  Misses         43       43              
Impacted Files Coverage Δ
lib/controllers/route_utils.dart 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Controllers Affecting or involving Steward's Controller layer. documentation Improvements or additions to documentation enhancement New feature or request Router Affecting or involving Steward's router layer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@Path annotation should accept and establish middleware for all child routes.
1 participant