feat(api): add auth HTTP controller with tests
这个提交包含在:
@@ -10,7 +10,11 @@ AppState& AppState::Instance() {
|
||||
}
|
||||
|
||||
void AppState::Init(const std::string& sqlite_path) {
|
||||
db_ = std::make_unique<db::SqliteDb>(db::SqliteDb::OpenFile(sqlite_path));
|
||||
if (sqlite_path == ":memory:") {
|
||||
db_ = std::make_unique<db::SqliteDb>(db::SqliteDb::OpenMemory());
|
||||
} else {
|
||||
db_ = std::make_unique<db::SqliteDb>(db::SqliteDb::OpenFile(sqlite_path));
|
||||
}
|
||||
csp::db::ApplyMigrations(*db_);
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户