mirror of
https://github.com/System-End/slack-morphism-rust.git
synced 2026-04-19 22:05:15 +00:00
Docs updates
This commit is contained in:
parent
aa12fc0b18
commit
98fa451002
2 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue