mirror of
https://github.com/metosin/reitit.git
synced 2026-02-20 17:29:08 +00:00
update example
This commit is contained in:
parent
8cd06c2bfb
commit
ac6d36de63
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
(ns example.server
|
(ns example.server
|
||||||
(:require [io.pedestal.http]
|
(:require [io.pedestal.http]
|
||||||
[clojure.core.async :as a]
|
[clojure.core.async :as a]
|
||||||
[reitit.pedestal :as pedestal]
|
[reitit.interceptor.pedestal :as pedestal]
|
||||||
[reitit.http :as http]
|
[reitit.http :as http]
|
||||||
[reitit.ring :as ring]))
|
[reitit.ring :as ring]))
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
(http/router
|
(http/router
|
||||||
["/api"
|
["/api"
|
||||||
{:interceptors [[interceptor :api]
|
{:interceptors [[interceptor :api]
|
||||||
[interceptor :apa]]}
|
[interceptor :ipa]]}
|
||||||
|
|
||||||
["/sync"
|
["/sync"
|
||||||
{:interceptors [[interceptor :sync]]
|
{:interceptors [[interceptor :sync]]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(ns reitit.pedestal
|
(ns reitit.interceptor.pedestal
|
||||||
(:require [io.pedestal.interceptor.chain :as chain]
|
(:require [io.pedestal.interceptor.chain :as chain]
|
||||||
[io.pedestal.interceptor :as interceptor]
|
[io.pedestal.interceptor :as interceptor]
|
||||||
[io.pedestal.http :as http]
|
[io.pedestal.http :as http]
|
||||||
Loading…
Reference in a new issue