ayb 0.1.12

ayb makes it easy to create, host, and share embedded databases like SQLite and DuckDB
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::server::ui_endpoints::auth::COOKIE_FOR_LOGOUT;
use actix_web::{get, HttpResponse, Result};

#[get("/log_out")]
pub async fn log_out() -> Result<HttpResponse> {
    Ok(HttpResponse::Found()
        .append_header(("Location", "/log_in"))
        .append_header(("Set-Cookie", COOKIE_FOR_LOGOUT))
        .finish())
}