all reference forms and health apis are done
This commit is contained in:
parent
65f186fadc
commit
3f8b9cb5d8
10 changed files with 630 additions and 29 deletions
|
@ -2,8 +2,11 @@ mod api;
|
|||
|
||||
use actix_multipart::form::tempfile::TempFileConfig;
|
||||
use actix_web::{middleware, App, HttpServer};
|
||||
use api::church_form::church_form;
|
||||
use api::health_form::health_form;
|
||||
use api::mt_form::mt_form;
|
||||
use api::parent_form::parent_form;
|
||||
use api::teacher_form::teacher_form;
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
|
@ -20,6 +23,9 @@ async fn main() -> std::io::Result<()> {
|
|||
.app_data(TempFileConfig::default().directory("./tmp"))
|
||||
.service(mt_form)
|
||||
.service(health_form)
|
||||
.service(parent_form)
|
||||
.service(teacher_form)
|
||||
.service(church_form)
|
||||
})
|
||||
.bind(("127.0.0.1", 4242))?
|
||||
.workers(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue