JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in
(import joy) # Given a handler (defn handle-func [request] (joy/text/plain (string "Hi " ((request :params) :name)))) # joy/route will attach it to a route (joy/route :get "/hi/:name" :handle-func) # without needing to pass the route(s) to joy/app (def app (joy/app {})) (joy/server app 9002) # visit at localhost:9002/hi/bob