oatpp / oatpp-swagger

OpenApi 3.0.0 docs + Swagger UI for oatpp services
https://oatpp.io/
Apache License 2.0
95 stars 54 forks source link

Noncached resources #14

Closed bamkrs closed 5 years ago

bamkrs commented 5 years ago

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 commented 5 years ago

Merged!