rename dev app

neo4j-4
Josha von Gizycki 5 years ago
parent 4e1ae1c5bc
commit 66e3401024

@ -51,7 +51,7 @@
(spec/check-asserts true)
(handler req)))
(def app
(def dev-app
(-> app-routes
wrap-spec-asserts
devmode/wrap-devmode

@ -6,10 +6,10 @@
(defonce server (atom nil))
(defn start-server!
[& {:keys [port
join?]
[& {:keys [port join? handler]
:or {port 3080
join? true}}]
join? true
handler wanijo-handler/standalone-app}}]
(reset! server
(run-jetty wanijo-handler/standalone-app
{:port port
@ -17,7 +17,8 @@
(defn start-server-dev! []
(start-server! :join? false
:port 8080))
:port 8080
:handler wanijo-handler/dev-app))
(defn stop-server []
(.stop @server))

Loading…
Cancel
Save