Skip to content

Commit

Permalink
enable http backend
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalife committed Dec 25, 2024
1 parent 58b0ea2 commit 4efa400
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/backends/backend.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "backend.h"
#include "mysql/be_mysql.h"
#include "file/be_file.h"
#include "http/be_http.h"
#include "mysql/be_mysql.h"
#include "sqlite/be_sqlite.h"

#include <mosquitto.h>
Expand All @@ -11,6 +12,10 @@ std::unique_ptr<IBackend> BackendFactory(std::string_view kind, const std::map<s
return std::make_unique<BE_File>(options);
}

if (kind == BE_Http::kind) {
return std::make_unique<BE_Http>(options);
}

if (kind == BE_Mysql::kind) {
return std::make_unique<BE_Mysql>(options);
}
Expand Down

0 comments on commit 4efa400

Please sign in to comment.