Karitham / corde

A high level discord interactions wrapper, simple, idiomatic, testable and extensible. Based on outgoing webhooks, and designed from scratch for excellence
https://github.com/Karitham/corde
MIT License
11 stars 3 forks source link

Middlewares #8

Open Karitham opened 2 years ago

Karitham commented 2 years ago

Middlewares are lovely.

They're useful for all kinds of stuff, and they're especially useful when accompanied by a great routing library.

We need to figure out a nice design to apply middlewares to Routes, Groups and Subroutes. Chi does this amazingly well

jolheiser commented 2 years ago

I'd imagine we could do it similarly to chi, just with our Handler type instead.