diff options
| author | Asko Nõmm <asko@bien.ee> | 2021-10-02 13:53:42 -0300 |
|---|---|---|
| committer | Asko Nõmm <asko@bien.ee> | 2021-10-02 13:53:42 -0300 |
| commit | 7b927c06fd1bb777057eb8e708354e5633c8a828 (patch) | |
| tree | 32bc6c508787415796c8e9c768c9bf61c99ff611 /src/ruuter/core.clj | |
| parent | 2642d78cbc515eeb1e30732b179b225916460097 (diff) | |
Print port being used
Diffstat (limited to 'src/ruuter/core.clj')
| -rw-r--r-- | src/ruuter/core.clj | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ruuter/core.clj b/src/ruuter/core.clj index 1cf96cb..b441b1f 100644 --- a/src/ruuter/core.clj +++ b/src/ruuter/core.clj @@ -94,9 +94,10 @@ (defn route! "Starts an HTTP server which will then try to find a matching route for each request from within the given collection of `routes`. Takes an - optional `opts` map, which corresponds directly to HTTP-Kit's config, + optional `opts` map, which corresponds directly to http-kit's config, allowing you to specify things like `{:port 8080}` and so on." ([routes] (route! routes {:port 9600})) ([routes opts] + (println "Starting HTTP server on port " (:port opts)) (http/run-server #(router routes %) opts)))
\ No newline at end of file |
