Added Avanlonia frontend.

This commit is contained in:
Dennis Brentjes
2023-08-14 18:16:02 +02:00
parent 22f05c00c1
commit 9e84a62c41
77 changed files with 3523 additions and 1201 deletions

View File

@@ -1,6 +1,6 @@
use actix_web::http::header::ContentType;
use actix_web::{web, post, HttpResponse, Responder, get};
use actix_web::{web, post, HttpResponse, Responder};
use validator::ValidateArgs;
use crate::DbPool;
use crate::request::requests::{Login, Register};
@@ -30,7 +30,7 @@ impl Into<schema::user::Register> for Register {
}
}
#[get("/token")]
#[post("/token")]
pub async fn login(pool: web::Data<DbPool>, login_data: web::Json<Login>) -> Result<impl Responder, ApiError> {
let data = login_data.into_inner();