-
Notifications
You must be signed in to change notification settings - Fork 422
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
Mix of Akka directives and tapir endpoints work in unexpected way #111
Comments
Well that's how akka-http works. You are nesting tapir's route inside the |
so the only way is to use
It works, but in this case the answer may be different than described by tapir. This is no longer forced as in the case of |
If you want to use |
ok, thanks |
Hello,
Suppose I have
securityDirective
that checks the authorization header and if it does not exist, returnsStatusCodes.Unauthorized
. Also I have two endpoints like below:And now when i send get request on /something i get Unauthorized error instead of OK. In my opinion it is because akka check header before checking path.
So now it works in this way:
Should work:
I know i can use
toDirective
instead oftoRoute
but event that it's unexpected behavior in my opinionThe text was updated successfully, but these errors were encountered: