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

added function to set static directory during runtime #640

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcrobm
Copy link
Contributor

I can only get the static directory path during runtime, and can therefore not use the defines to set it.
So this is more of a tiny feature request.
Would be convenient to not have to maintain a fork.

include/crow/json.h Show resolved Hide resolved
@@ -283,15 +283,15 @@ namespace crow

///
/// Go through the rules, upgrade them if possible, and add them to the list of rules
void validate()
void validate(std::string staticDir = CROW_STATIC_DIRECTORY)
Copy link
Member

Choose a reason for hiding this comment

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

I think it might be best if this was a member of crow::Crow

@gittiver gittiver added need_rebase PR needs rebase on master branch feature Code based project improvement labels Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Code based project improvement need_rebase PR needs rebase on master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants