potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use axum::response::Redirect;

use crate::render::http::router::NOT_FOUND;

pub fn redirect_to_login(login_route: &str, page_path: &str) -> Redirect {
    Redirect::to(&format!("{}?next_path={}", login_route, page_path))
}

pub fn redirect_to_404() -> Redirect {
    Redirect::to(&NOT_FOUND)
}