Skip to content

Instantly share code, notes, and snippets.

@fiddlerwoaroof
Created March 2, 2016 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiddlerwoaroof/4c07d90b774bdd88aeac to your computer and use it in GitHub Desktop.
Save fiddlerwoaroof/4c07d90b774bdd88aeac to your computer and use it in GitHub Desktop.
(ql:quickload :ningle)
(ql:quickload :clack)
(defvar *app* (make-instance 'ningle:<app>))
(setf (ningle:route *app* "/some.json" :method :GET)
(lambda (p)
(declare (ignore p))
'(200
(:Content-Type "application/json")
("{\"key\": \"value\"}")) ))
(clack:clackup *app*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment