Fix missing code from main.rs

main
Elnu 2 years ago
parent 4cfa06f855
commit 61234e9c07

@ -5,7 +5,11 @@ mod database;
pub use database::Database;
use actix_web::{get, web, App, HttpResponse, HttpServer, Responder};
use std::sync::{LockResult, Mutex};
use std::sync::Mutex;
struct AppState {
db: Mutex<Database>
}
#[get("/comments")]
async fn get_comments(data: web::Data<AppState>) -> impl Responder {

Loading…
Cancel
Save