Skip to content

Commit eeae094

Browse files
committed
add recognize reinit
1 parent 3114b04 commit eeae094

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/httpserver.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ class http_connection : public std::enable_shared_from_this<http_connection>
156156
response_.set(http::field::content_type, "application/json");
157157
std::string url = "BOTH" + UriDecode(target.substr(16));
158158
beast::ostream(response_.body()) << lambda_(std::move(url));
159+
} else if (target.find("/api/reinit") == 0) {
160+
response_.set(http::field::content_type, "text/plain");
161+
beast::ostream(response_.body()) << "Received Reinitialize Request OK\r\n";
159162
} else {
160163
response_.result(http::status::not_found);
161164
response_.set(http::field::content_type, "text/plain");

0 commit comments

Comments
 (0)