Skip to content
New issue

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

Remove serving of public directory #235

Closed
wants to merge 1 commit into from
Closed

Remove serving of public directory #235

wants to merge 1 commit into from

Conversation

rob-maron
Copy link
Contributor

Removes the serving of a public directory. I checked and none of our code uses this right now

The only thing I want to be sure of is that app.rs:400 does not break anything (the removal of /public). I tested locally and everything works, but wanted to make sure

.at(&format!("v{version}"))
.at(&prefix.join("/"))
.serve_dir(api.public().unwrap_or_else(|| &DEFAULT_PUBLIC_PATH))?;
server.at(&format!("v{version}")).at(&prefix.join("/"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do now if we're not serving a directory or adding any endpoints after at(...)?

Also, the comment and #[allow] attribute above are no longer needed

@rob-maron rob-maron closed this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants