diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | project.clj | 1 | ||||
| -rw-r--r-- | src/ruuter/core.clj | 3 |
3 files changed, 7 insertions, 1 deletions
@@ -2,6 +2,10 @@ A tiny HTTP router that operates with a simple data structure where each route is a map inside a vector. Yup, that's it. No magic, no bullshit. +## Installation + +[](https://clojars.org/org.clojars.askonomm/ruuter) + ## Usage ### Setting up diff --git a/project.clj b/project.clj index 505f6e1..e2afac1 100644 --- a/project.clj +++ b/project.clj @@ -7,4 +7,5 @@ [http-kit "2.5.3"]] :main ruuter.core :min-lein-version "2.0.0" + :aot [ruuter.core] :repl-options {:init-ns ruuter.core}) diff --git a/src/ruuter/core.clj b/src/ruuter/core.clj index 2504b6f..e646f7e 100644 --- a/src/ruuter/core.clj +++ b/src/ruuter/core.clj @@ -1,6 +1,7 @@ (ns ruuter.core (:require [clojure.string :as string] - [org.httpkit.server :as http])) + [org.httpkit.server :as http]) + (:gen-class)) (def routes [{:path "/" |
