доза: условие гонки в докере строит, тянет mfc42.dll автоматически
This commit is contained in:
parent
1c79edcde7
commit
13bf157135
6 changed files with 51 additions and 33 deletions
|
|
@ -142,7 +142,8 @@ class WebServer {
|
|||
|
||||
public:
|
||||
WebServer() {
|
||||
if (!std::filesystem::exists(TMP_FOLDER)) std::filesystem::create_directory(TMP_FOLDER);
|
||||
if (!std::filesystem::exists(TMP_FOLDER))
|
||||
std::filesystem::create_directory(TMP_FOLDER);
|
||||
|
||||
m_svr.Post("/translate", [this](const httplib::Request &req, httplib::Response &res) {
|
||||
TranslateHandler(req, res);
|
||||
|
|
@ -159,6 +160,7 @@ class WebServer {
|
|||
}
|
||||
|
||||
void listen(const char *host = "0.0.0.0", unsigned short port = 80) {
|
||||
print("Started!");
|
||||
m_svr.listen(host, port);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue