Merge pull request #169 from automaciej/set-mount-point-slash

Define mount point as "/" rather than nullptr.
This commit is contained in:
Andrea Bondavalli 2024-07-25 18:44:52 +02:00 committed by GitHub
commit b34b55b1ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ bool HttpServer::init() {
return false;
}
svr_.set_mount_point(nullptr, config_->get_http_base_dir().c_str());
svr_.set_mount_point("/", config_->get_http_base_dir().c_str());
svr_.Get("(/|/Config|/PTP|/Sources|/Sinks|/Browser)",
[&](const Request& req, Response& res) {