compojure like http routes for newlisp?
Posted: Sun Oct 02, 2016 10:17 pm
I am trying to run newlisp behind inetd in -http mode with http-conf.lsp example provided in the manual.
The example provided in the manual is very limited and it exposes the entire newlisp interpreter to the http port which I find a security issue. I wish we had clojure compojure like routes DSL for newlisp.
Nice thing about compojure is that it exposes only these routes and nothing but these routes. Is there a DSL similar to this for newlisp and easy to use?
The example provided in the manual is very limited and it exposes the entire newlisp interpreter to the http port which I find a security issue. I wish we had clojure compojure like routes DSL for newlisp.
Code: Select all
(defroutes home-routes
(GET "/" [] (home-page))
(GET "/hello/:name" [name] (str "Hello " name))
(GET "/about" [] (about-page)))