Skip to content

Commit

Permalink
added config options on jetty start
Browse files Browse the repository at this point in the history
  • Loading branch information
onionpancakes committed Jul 20, 2024
1 parent 37e1a12 commit f095171
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions modules/serval-jetty/src/dev/onionpancakes/serval/jetty.clj
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@

(defn start
{:tag Server}
[^Server server]
(doto server
(.start)))
([^Server server]
(doto server
(.start)))
([^Server server & {:as config}]
(doto server
(configure-server config)
(.start))))

(defn stop
{:tag Server}
Expand All @@ -65,9 +69,11 @@
(defn restart
{:tag Server}
([^Server server]
(restart server nil))
(doto server
(.stop)
(.start)))
([^Server server & {:as config}]
(doto server
(stop)
(.stop)
(configure-server config)
(start))))
(.start))))

0 comments on commit f095171

Please sign in to comment.