We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import ( "os" "net/http" "github.com/pressly/chi" ) r := chi.NewRouter() workDir, _ := os.Getwd() r.FileServer("/static", http.Dir(filepath.Join(workDir, "static")))
Expected URL: /static/moment/moment.min.js But I got: /moment/moment.min.js
How can I set it so the /static prefix is preserved?
/static
The text was updated successfully, but these errors were encountered:
This is my mistake, the feature works as expected.
Sorry for wasting your time.
Sorry, something went wrong.
No branches or pull requests
Expected URL: /static/moment/moment.min.js
But I got: /moment/moment.min.js
How can I set it so the
/static
prefix is preserved?The text was updated successfully, but these errors were encountered: