maybe this works now
This commit is contained in:
parent
f3a61bfa99
commit
5f1410fb2f
15 changed files with 472 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue