JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in
(import joy) # given a handler (defn handle-func [request] (joy/text/plain (string "Hi " ((request :params) :name)))) # joy/defroutes will prepare routes (joy/defroutes r [:get "/hi/:name" :handle-func]) # which you can pass to joy/app (joy/server (joy/app {:routes r}) 9002) # visit localhost:9002/hi/bob