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

Noncached resources #14

Merged
merged 3 commits into from Sep 5, 2019
Merged

Noncached resources #14

merged 3 commits into from Sep 5, 2019

Conversation

bamkrs
Copy link
Member

@bamkrs bamkrs commented Sep 5, 2019

As suggested in #11
Use

  /**
   *  Swagger-Ui Resources (<oatpp-examples>/lib/oatpp-swagger/res)
   */
  OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::swagger::Resources>, swaggerResources)([] {
    // Make sure to specify correct full path to oatpp-swagger/res folder !!!
    return oatpp::swagger::Resources::streamResources(OATPP_SWAGGER_RES_PATH);
  }());

Instead of oatpp::swagger::Resources::loadRessources(OATPP_SWAGGER_RES_PATH);

@lganzzzo lganzzzo merged commit fb439d9 into oatpp:master Sep 5, 2019
@lganzzzo
Copy link
Member

lganzzzo commented Sep 5, 2019

Merged!

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.

None yet

2 participants