rapid-test/pages/api/routes/index.rs

11 lines
273 B
Rust

use rapid_web::actix::web::Redirect;
use rapid_web::actix::Responder;
use rapid_web::rapid_web_codegen::rapid_handler;
pub const ROUTE_KEY: &str = "index";
#[rapid_handler]
pub async fn query() -> impl Responder {
Redirect::to("http://localhost:3000/").permanent()
}