Move item related functions to their own file

This commit is contained in:
Ethan O'Brien
2024-05-04 15:22:46 -05:00
parent 8f5f32a17e
commit ea84ffdc65
14 changed files with 323 additions and 319 deletions

View File

@@ -1,9 +1,8 @@
use json::{object, array};
use actix_web::{HttpResponse, HttpRequest};
use crate::router::userdata;
use crate::router::{userdata, global};
use crate::encryption;
use crate::router::global;
pub fn friend(req: HttpRequest, body: String) -> HttpResponse {
let key = global::get_login(req.headers(), &body);