Skip to content

Commit 76fa293

Browse files
committed
server: remove pingpong endpoint
1 parent f723f56 commit 76fa293

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

examples/server/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,6 @@ static void log_server_request(const httplib::Request & req, const httplib::Resp
569569
printf("request: %s %s (%s)\n", req.method.c_str(), req.path.c_str(), req.body.c_str());
570570
}
571571

572-
const auto pingpong = [&](const httplib::Request &, httplib::Response & res) {
573-
std::string resp = "{\"ping\": \"pong\"}";
574-
res.set_content(resp, "application/json");
575-
};
576572

577573
int main(int argc, const char* argv[]) {
578574
SDParams params;
@@ -685,7 +681,6 @@ int main(int argc, const char* argv[]) {
685681
});
686682
svr->set_logger(log_server_request);
687683

688-
svr->Get("/Ping", pingpong);
689684
svr->Post("/txt2img", txt2imgRequest);
690685

691686

0 commit comments

Comments
 (0)