forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge torrust#209: Remove ActixWeb implementation
717cdaa refactor(api): [torrust#208] use API impementation enum for API versioning (Jose Celano) 44c799e refator(api): [torrust#208] remove ActixWeb implementation (Jose Celano) Pull request description: Remove ActixWeb implementation. Top commit has no ACKs. Tree-SHA512: 62e9724aabaf06c7ef1d2be3f8fe9e8a45ffe667ea96aa52018829231fc5ae80c7957e946040db43eccefeb544b685466e86c665d33ade50bef50727440ad116
- Loading branch information
Showing
66 changed files
with
1,394 additions
and
3,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
use torrust_index_backend::app; | ||
use torrust_index_backend::bootstrap::config::init_configuration; | ||
use torrust_index_backend::web::api::Implementation; | ||
use torrust_index_backend::web::api::Version; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), std::io::Error> { | ||
let configuration = init_configuration().await; | ||
|
||
let api_implementation = Implementation::Axum; | ||
let api_version = Version::V1; | ||
|
||
let app = app::run(configuration, &api_implementation).await; | ||
let app = app::run(configuration, &api_version).await; | ||
|
||
match api_implementation { | ||
Implementation::ActixWeb => app.actix_web_api_server.unwrap().await.expect("the API server was dropped"), | ||
Implementation::Axum => app.axum_api_server.unwrap().await.expect("the Axum API server was dropped"), | ||
match api_version { | ||
Version::V1 => app.api_server.unwrap().await.expect("the API server was dropped"), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.