Last active
August 29, 2015 14:11
-
-
Save tillda/868a227725f5a9b26c37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns liberagent.routing | |
(:require | |
[domkm.silk :as silk])) ;; Go to definition on domkm.silk works, but silk in the :as part is mark as unused | |
(def api-routes | |
(silk/routes {:api-data [["api"] {"limit" (silk/? (silk/int :limit) {:limit 100}) ;; silk/routes is being hinted as a possibility to :require, when refactored it adds another [domkm.silk :as silk] | |
"offset" (silk/? (silk/int :offset) {:offset 0})} (serve/POST)]})) ;; silk/? and silk/int are marked as unresolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment