Interceptors in Pedestal are attached to routes that define the endpoints for clients to interact with the application. Pedestal provides three prominent ways of defining Routes (http://pedestal.io/reference/routing-quick-reference#_routes)—verbose, table, and terse. All three are defined as Clojure data structures with verbose being defined as a Map (https://clojure.org/reference/data_structures#Maps), table as a set (https://clojure.org/reference/data_structures#Sets), and terse as a vector (https://clojure.org/reference/data_structures#Vectors). These three formats are defined for convenience only. Pedestal internally converts all route definitions into the verbose form before processing them using the convenient function ...
Creating routes
Get Microservices with Clojure now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.