tower-http
tower-http copied to clipboard
added a new_absolute function to ServeDir
Motivation
By tower-http forces the path of the directory to be relative to the working directory, and there is no way to change this behavior
Solution
Added a new new_absolute function to ServeDir, which skips the conversion to a relative path