This commit is contained in:
LinlyBoi
2022-12-25 22:35:16 +02:00
parent 3e9a85a2a7
commit bb2d30e890
7 changed files with 82 additions and 42 deletions

View File

@@ -1,5 +1,7 @@
pub mod api;
pub mod shadowrealmapi;
use crate::api::*;
use crate::shadowrealmapi::*;
pub(crate) use actix_web::{App, HttpServer};
//Main function where all the api calls are
@@ -11,6 +13,9 @@ async fn main() -> std::io::Result<()> {
.service(api_ticket)
.service(api_admin)
.service(api_driver)
.service(api_json_ticket)
.service(api_json_admin)
.service(api_json_driver)
.service(api_test)
})
.bind(("0.0.0.0", 48590))?