This commit is contained in:
realaravinth
2021-05-02 16:44:54 +05:30
parent 5361e9b43a
commit ef778687e0
15 changed files with 75 additions and 426 deletions

View File

@@ -75,7 +75,6 @@ pub struct Password {
pub password: String,
}
//#[post("/api/v1/signup")]
async fn signup(
payload: web::Json<Register>,
data: web::Data<Data>,
@@ -143,7 +142,6 @@ async fn signup(
Ok(HttpResponse::Ok())
}
//#[post("/api/v1/signin")]
async fn signin(
id: Identity,
payload: web::Json<Login>,
@@ -175,7 +173,6 @@ async fn signin(
}
}
//#[get("/logout", wrap = "CheckLogin")]
async fn signout(id: Identity) -> impl Responder {
if let Some(_) = id.identity() {
id.forget();