Authenticate protected routes

This commit is contained in:
Jai A committed 2020-09-28 21:05:42 -07:00
1 parent 05235f8385
commit 3d32c30d2d
18 files changed
+419 -108

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ use sqlx::postgres::{PgPool, PgPoolOptions};
use sqlx::{Connection, PgConnection, Postgres};
use std::path::Path;
const MIGRATION_FOLDER: &'static str = "migrations";
const MIGRATION_FOLDER: &str = "migrations";
pub async fn connect() -> Result<PgPool, sqlx::Error> {
info!("Initializing database connection");