maybe this works now

This commit is contained in:
WaveringAna 2025-01-26 01:53:14 -05:00
parent f3a61bfa99
commit 5f1410fb2f
15 changed files with 472 additions and 15 deletions

View file

@ -1,10 +1,15 @@
use actix_cors::Cors;
use actix_web::{web, App, HttpServer};
use actix_files::Files;
use actix_web::{middleware::DefaultHeaders, web, App, HttpServer};
use anyhow::Result;
use simple_link::{handlers, AppState};
use simplelink::{handlers, AppState};
use sqlx::postgres::PgPoolOptions;
use tracing::info;
async fn index() -> Result<actix_files::NamedFile, actix_web::Error> {
Ok(actix_files::NamedFile::open("./static/index.html")?)
}
#[actix_web::main]
async fn main() -> Result<()> {
// Load environment variables from .env file