Fork me on GitHub
#reitit
<
2018-09-08
>
ikitommi08:09:32

added reitit-interceptors module, making interceptors internaly on par with middleware. Sample apps: • Pedestal + reitit + swagger: https://github.com/metosin/reitit/tree/master/examples/pedestal-swagger • Sieppari + reitit + swagger: https://github.com/metosin/reitit/tree/master/examples/http-swagger • reitit-ring + swagger: https://github.com/metosin/reitit/tree/master/examples/ring-swagger

aaron5118:09:26

How to do virtual hosts in reitit on ring? I’d like a completely different set of routes based on the Host header

ikitommi19:09:14

@aaron51 There isn’t anything built-in for it, but I guess you can built that on top of reitit-ring. e.g. have a custom ring handler that reads the Host and based on that, calls one apps created with reitit.ring/ring-handler.

👍 4
aaron5117:09:04

Turned out to be a simple if!