Skip to content

Instantly share code, notes, and snippets.

@tillda
Last active August 29, 2015 14:11
Show Gist options
  • Save tillda/868a227725f5a9b26c37 to your computer and use it in GitHub Desktop.
Save tillda/868a227725f5a9b26c37 to your computer and use it in GitHub Desktop.
(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