In Compojure one can define default 404 behavior, e.g.,
(defroutes app-routes
;; ...
(route/not-found "These aren't the droids you're looking for."))
As we've been increasing the number and complexity of REST endpoints, we've been looking into switching to Swagger / compojure-api
. Swagger seems higher level and quite different from basic Compojure. What's the correct idiom for customizing 404 behavior using this library?