mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-19 12:06:36 +00:00
11 lines
292 B
Clojure
11 lines
292 B
Clojure
(ns myapp
|
|
(import uwsgi)
|
|
)
|
|
|
|
(defn handler [req]
|
|
{:status 200
|
|
:headers { "Content-Type" "text/html" , "Server" "uWSGI" }
|
|
:body (str "<h1>The requested uri is " (get req :uri) "</h1>" "<h2>reverse is " (uwsgi/rpc (into-array ["" "reverse" (get req :uri)])) "</h2>" )
|
|
}
|
|
)
|