tower-http icon indicating copy to clipboard operation
tower-http copied to clipboard

added a new_absolute function to ServeDir

Open MHanak1 opened this issue 1 year ago • 0 comments

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

MHanak1 avatar Jul 02 '25 19:07 MHanak1