webui.cpp 345 B

12345678910111213141516171819
  1. #include "smartbotic/webui.hpp"
  2. #include <string>
  3. namespace smartbotic::webui {
  4. namespace {
  5. std::string g_assets_path = "./webui/assets";
  6. } // namespace
  7. auto GetAssetsPath() -> std::string {
  8. return g_assets_path;
  9. }
  10. void SetAssetsPath(std::string_view path) {
  11. g_assets_path = std::string(path);
  12. }
  13. } // namespace smartbotic::webui