add user sql
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2024-12-27 04:48:06 +01:00
parent 764f2a879d
commit 0850dab882
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 29 additions and 0 deletions

View file

@ -5,6 +5,7 @@
// - PkgDB Abstraction
// - Pkg Abstraction
use based::get_pg;
use based::page::{Shell, render_page};
use based::request::{RequestContext, StringResponse};
use maud::html;
@ -38,6 +39,10 @@ pub async fn index_page(ctx: RequestContext) -> StringResponse {
#[rocket::launch]
async fn launch() -> _ {
env_logger::init();
let pg = get_pg!();
sqlx::migrate!("./migrations").run(pg).await.unwrap();
rocket::build().mount("/", routes![
index_page,
routes::pkg_route,