You create a filter chain with one or multiple filter(s), then create a handler for this filter chain and pass it to the router.
You can have a look at the setup_router routine of the filter example:
https://github.com/EiffelWebFramework/EWF/blob/master/examples/filter/src/filter_server.e#L72