eeg_certs/backend/src/online_classroom/users.rs

16 lines
478 B
Rust
Raw Normal View History

use rocket::{http::Status, serde::json::Json};
2023-09-23 16:03:29 +00:00
use super::json_result::JsonResult;
// Instead of requesting pages and managing session & cookies manually,
// create a wrapper that:
// - Checks if the session cookie is valid
// - If not, tries to login
// - Makes the request
// - Returns the html string, or an error
#[get("/classroom/users/<full_name>")]
pub async fn get_users(full_name: String) -> (Status, Json<JsonResult<()>>) {
(Status::Ok, JsonResult::ok(()))
}