Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
connect finagle filter to specific controller #203
Hi , it's not clear for m the relation between finatra controllers nd finagle services and how can I compose them with filter, for instance, suppose than I wish than some routes will be filtered and check if the user is authenticate, with finagle you could use a filter which receive some service, but in finatra I dont know how apply the filter to some controllers, this is the only example in the doc
class MyServer extends FinatraServer
would be cool can do
but controllers seems not be services, what is the correct approach in this case?
In Finatra v2, please see the following example for adding a per-controller filter: https://github.com/twitter/finatra/blob/master/http/src/test/scala/com/twitter/finatra/http/integration/tweetexample/main/TweetsEndpointServer.scala#L26