mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
0.1.1-SNAPSHOT
This commit is contained in:
parent
9a2a8a1f16
commit
b57d900507
13 changed files with 30 additions and 31 deletions
12
README.md
12
README.md
|
|
@ -27,17 +27,17 @@ See the [full documentation](https://metosin.github.io/reitit/) for details.
|
|||
All bundled:
|
||||
|
||||
```clj
|
||||
[metosin/reitit "0.1.0"]
|
||||
[metosin/reitit "0.1.1-SNAPSHOT"]
|
||||
```
|
||||
|
||||
Optionally, the parts can be required separately:
|
||||
|
||||
```clj
|
||||
[metosin/reitit-core "0.1.0"] ; routing core
|
||||
[metosin/reitit-ring "0.1.0"] ; ring-router
|
||||
[metosin/reitit-spec "0.1.0"] ; spec coercion
|
||||
[metosin/reitit-schema "0.1.0"] ; schema coercion
|
||||
[metosin/reitit-swagger "0.1.0"] ; swagger docs
|
||||
[metosin/reitit-core "0.1.1-SNAPSHOT"] ; routing core
|
||||
[metosin/reitit-ring "0.1.1-SNAPSHOT"] ; ring-router
|
||||
[metosin/reitit-spec "0.1.1-SNAPSHOT"] ; spec coercion
|
||||
[metosin/reitit-schema "0.1.1-SNAPSHOT"] ; schema coercion
|
||||
[metosin/reitit-swagger "0.1.1-SNAPSHOT"] ; swagger docs
|
||||
```
|
||||
|
||||
## Quick start
|
||||
|
|
|
|||
|
|
@ -19,17 +19,17 @@ The following higher-level routers are also available as separate modules:
|
|||
To use Reitit, add the following dependecy to your project:
|
||||
|
||||
```clj
|
||||
[metosin/reitit "0.1.0"]
|
||||
[metosin/reitit "0.1.1-SNAPSHOT"]
|
||||
```
|
||||
|
||||
Optionally, the parts can be required separately:
|
||||
|
||||
```clj
|
||||
[metosin/reitit-core "0.1.0"] ; routing core
|
||||
[metosin/reitit-ring "0.1.0"] ; ring-router
|
||||
[metosin/reitit-spec "0.1.0"] ; spec coercion
|
||||
[metosin/reitit-schema "0.1.0"] ; schema coercion
|
||||
[metosin/reitit-swagger "0.1.0"] ; swagger docs
|
||||
[metosin/reitit-core "0.1.1-SNAPSHOT"] ; routing core
|
||||
[metosin/reitit-ring "0.1.1-SNAPSHOT"] ; ring-router
|
||||
[metosin/reitit-spec "0.1.1-SNAPSHOT"] ; spec coercion
|
||||
[metosin/reitit-schema "0.1.1-SNAPSHOT"] ; schema coercion
|
||||
[metosin/reitit-swagger "0.1.1-SNAPSHOT"] ; swagger docs
|
||||
```
|
||||
|
||||
For discussions, there is a [#reitit](https://clojurians.slack.com/messages/reitit/) channel in [Clojurians slack](http://clojurians.net/).
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
[Ring](https://github.com/ring-clojure/ring) is a Clojure web applications library inspired by Python's WSGI and Ruby's Rack. By abstracting the details of HTTP into a simple, unified API, Ring allows web applications to be constructed of modular components that can be shared among a variety of applications, web servers, and web frameworks.
|
||||
|
||||
```clj
|
||||
[metosin/reitit-ring "0.1.0-SNAPSHOT"]
|
||||
[metosin/reitit-ring "0.1.1-SNAPSHOT"]
|
||||
```
|
||||
|
||||
Ring-router adds support for [handlers](https://github.com/ring-clojure/ring/wiki/Concepts#handlers), [middleware](https://github.com/ring-clojure/ring/wiki/Concepts#middleware) and routing based on `:request-method`. Ring-router is created with `reitit.ring/router` function. It uses a custom route compiler, creating a optimized data structure for handling route matches, with compiled middleware chain & handlers for all request methods. It also ensures that all routes have a `:handler` defined. `reitit.ring/ring-handler` is used to create a Ring handler out of ring-router.
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||
[ring "1.6.3"]
|
||||
[metosin/muuntaja "0.4.1"]
|
||||
[metosin/reitit "0.1.0"]])
|
||||
[metosin/reitit "0.1.1-SNAPSHOT"]])
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||
[ring "1.6.3"]
|
||||
[metosin/muuntaja "0.4.1"]
|
||||
[metosin/reitit "0.1.0"]])
|
||||
[metosin/reitit "0.1.1-SNAPSHOT"]])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-core "0.1.0"
|
||||
(defproject metosin/reitit-core "0.1.1-SNAPSHOT"
|
||||
:description "Snappy data-driven router for Clojure(Script)"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-ring "0.1.0"
|
||||
(defproject metosin/reitit-ring "0.1.1-SNAPSHOT"
|
||||
:description "Reitit: Ring routing"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-schema "0.1.0"
|
||||
(defproject metosin/reitit-schema "0.1.1-SNAPSHOT"
|
||||
:description "Reitit: Plumatic Schema coercion"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-spec "0.1.0"
|
||||
(defproject metosin/reitit-spec "0.1.1-SNAPSHOT"
|
||||
:description "Reitit: clojure.spec coercion"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-swagger "0.1.0-SNAPSHOT"
|
||||
(defproject metosin/reitit-swagger "0.1.1-SNAPSHOT"
|
||||
:description "Reitit: Swagger-support"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit "0.1.0"
|
||||
(defproject metosin/reitit "0.1.1-SNAPSHOT"
|
||||
:description "Snappy data-driven router for Clojure(Script)"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
14
project.clj
14
project.clj
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-parent "0.1.0"
|
||||
(defproject metosin/reitit-parent "0.1.1-SNAPSHOT"
|
||||
:description "Snappy data-driven router for Clojure(Script)"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
@ -9,12 +9,12 @@
|
|||
:source-uri "https://github.com/metosin/reitit/{version}/{filepath}#L{line}"
|
||||
:metadata {:doc/format :markdown}}
|
||||
|
||||
:managed-dependencies [[metosin/reitit "0.1.0"]
|
||||
[metosin/reitit-core "0.1.0"]
|
||||
[metosin/reitit-ring "0.1.0"]
|
||||
[metosin/reitit-spec "0.1.0"]
|
||||
[metosin/reitit-schema "0.1.0"]
|
||||
[metosin/reitit-swagger "0.1.0-SNAPSHOT"]
|
||||
:managed-dependencies [[metosin/reitit "0.1.1-SNAPSHOT"]
|
||||
[metosin/reitit-core "0.1.1-SNAPSHOT"]
|
||||
[metosin/reitit-ring "0.1.1-SNAPSHOT"]
|
||||
[metosin/reitit-spec "0.1.1-SNAPSHOT"]
|
||||
[metosin/reitit-schema "0.1.1-SNAPSHOT"]
|
||||
[metosin/reitit-swagger "0.1.1-SNAPSHOT"]
|
||||
|
||||
[meta-merge "1.0.0"]
|
||||
[metosin/spec-tools "0.6.1"]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
#!/bin/sh
|
||||
#!/bin/zsh
|
||||
|
||||
ext="sedbak$$"
|
||||
|
||||
find . -name project.clj -exec sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" '{}' \;
|
||||
find . -name project.clj -exec sed -i.$ext "s/defproject metosin\/reitit\(.*\) \".*\"/defproject metosin\/reitit\1 \"$1\"/g" '{}' \;
|
||||
sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" doc/*.md
|
||||
sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" *.md
|
||||
sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" **/*.md
|
||||
find . -name "*.$ext" -exec rm '{}' \;
|
||||
|
|
|
|||
Loading…
Reference in a new issue