tower_http::NormalizePath, but with exceptions
NormalizePath from tower, but with exceptions, because it's hard to add them when you have to wrap your whole service in this middleware for axum.
Middleware that normalizes paths, with exceptions.
Forked with minimal changes from tower_http::NormalizePathLayer.
Any trailing slashes from request paths, except those paths starting with one of the entries in exceptions, will be removed. For example, a request with /foo/
will be changed to /foo before reaching the inner service.
Example
use NormalizePathLayer;
use ;
use Full;
use Bytes;
use ;
use ;
async