adding the health form api and validation
This commit is contained in:
parent
e28ce85c7f
commit
65f186fadc
5 changed files with 491 additions and 6 deletions
|
@ -2,6 +2,7 @@ mod api;
|
|||
|
||||
use actix_multipart::form::tempfile::TempFileConfig;
|
||||
use actix_web::{middleware, App, HttpServer};
|
||||
use api::health_form::health_form;
|
||||
use api::mt_form::mt_form;
|
||||
|
||||
#[actix_web::main]
|
||||
|
@ -18,6 +19,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.wrap(middleware::Logger::default())
|
||||
.app_data(TempFileConfig::default().directory("./tmp"))
|
||||
.service(mt_form)
|
||||
.service(health_form)
|
||||
})
|
||||
.bind(("127.0.0.1", 4242))?
|
||||
.workers(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue