Docs updates

This commit is contained in:
Abdulla Abdurakhmanov 2022-08-06 15:36:28 +02:00
parent aa12fc0b18
commit 98fa451002
No known key found for this signature in database
GPG key ID: FCDF08B0ECE6E69B
2 changed files with 10 additions and 10 deletions

View file

@ -1,19 +1,11 @@
# Events API and OAuth for Axum
The library provides route implementation in `SlackClientEventsListener` based on Hyper/Tokio for:
The library provides route implementation in `SlackEventsAxumListener` based on Hyper/Tokio for:
- Push Events
- Interaction Events
- Command Events
- OAuth v2 redirects and client functions
You can chain all of the routes using `chain_service_routes_fn` from the library.
## Hyper configuration
In order to use Events API/OAuth you need to configure Hyper HTTP server.
There is nothing special about how to do that, and you can use [the official hyper docs](https://hyper.rs/).
This is just merely a quick example how to use it with Slack Morphism routes.
To create a server, you need hyper `make_service_fn` and `service_fn`.
## Example
```rust,noplaypen

View file

@ -1,11 +1,19 @@
# Events API and OAuth for Hyper
The library provides routes and middleware implementation in `SlackEventsAxumListener` for:
The library provides routes and middleware implementation in `SlackClientEventsListener` for:
- Push Events
- Interaction Events
- Command Events
- OAuth v2 redirects and client functions nested router
You can chain all of the routes using `chain_service_routes_fn` from the library.
## Hyper configuration
In order to use Events API/OAuth you need to configure Hyper HTTP server.
There is nothing special about how to do that, and you can use [the official hyper docs](https://hyper.rs/).
This is just merely a quick example how to use it with Slack Morphism routes.
## Example
```rust,noplaypen