Adds hit route

This commit is contained in:
2025-10-05 20:35:23 +02:00
parent 37a83275bd
commit f45900d69d
5 changed files with 80 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ mod dtos;
mod models;
mod schema;
use crate::api::hit;
use crate::api::tracker;
use diesel::{Connection, PgConnection};
use std::env;
@@ -36,4 +37,5 @@ fn rocket() -> _ {
tracker::delete
],
)
.mount("/hit", routes![hit::index, hit::get, hit::delete])
}