mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
21 lines
581 B
Markdown
21 lines
581 B
Markdown
# reitit-http example
|
|
|
|
## Usage
|
|
|
|
```clj
|
|
> lein repl
|
|
(start)
|
|
```
|
|
|
|
Go with browser to:
|
|
|
|
* http://localhost:3000/api/sync - synchronous
|
|
* http://localhost:3000/api/async - with [core.async](https://github.com/clojure/core.async) channels
|
|
* http://localhost:3000/api/future - with [futures](https://clojuredocs.org/clojure.core/future)
|
|
* http://localhost:3000/api/deferred - with [manifold](https://github.com/ztellman/manifold) deferred
|
|
* http://localhost:3000/api/promesa - with [promesa](http://funcool.github.io/promesa/latest/) promises
|
|
|
|
|
|
## License
|
|
|
|
Copyright © 2018 Metosin Oy
|