summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-26 12:25:13 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-26 12:25:13 +0100
commit5898e5ab4359945ef52dc7460bb2937a85603fc2 (patch)
tree0ef4c760bd6e30df2897e9cc725552ef54e51983 /src/api
parente3f0f700bf2de3b8e7d7c72893a4d6cb128f000d (diff)
authentication done
Diffstat (limited to 'src/api')
-rw-r--r--src/api/album.rs2
-rw-r--r--src/api/artist.rs2
-rw-r--r--src/api/search_results.rs2
-rw-r--r--src/api/song.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/api/album.rs b/src/api/album.rs
index 2c6dfbb..9094495 100644
--- a/src/api/album.rs
+++ b/src/api/album.rs
@@ -1,6 +1,6 @@
use crate::api::{get_response_from_query, Response};
-use crate::database::Delete;
use crate::database::album::{Album, AlbumPost, AlbumPut};
+use crate::database::Delete;
use crate::extractors::auth_token::AuthenticationToken;
use crate::AppState;
use actix_web::{delete, get, post, put, web, HttpResponse};
diff --git a/src/api/artist.rs b/src/api/artist.rs
index e8e5009..d36ccf4 100644
--- a/src/api/artist.rs
+++ b/src/api/artist.rs
@@ -1,6 +1,6 @@
use crate::api::{get_response_from_query, Response};
-use crate::database::Delete;
use crate::database::artist::{Artist, ArtistPost, ArtistPut};
+use crate::database::Delete;
use crate::extractors::auth_token::AuthenticationToken;
use crate::AppState;
use actix_web::{delete, get, post, put, web, HttpResponse};
diff --git a/src/api/search_results.rs b/src/api/search_results.rs
index 9ccb013..f53bce8 100644
--- a/src/api/search_results.rs
+++ b/src/api/search_results.rs
@@ -29,7 +29,7 @@ pub async fn search_results(
_ => (
Err(sqlx::Error::RowNotFound),
Err(sqlx::Error::RowNotFound),
- Err(sqlx::Error::RowNotFound)
+ Err(sqlx::Error::RowNotFound),
),
};
diff --git a/src/api/song.rs b/src/api/song.rs
index e046d22..1fec41c 100644
--- a/src/api/song.rs
+++ b/src/api/song.rs
@@ -1,6 +1,6 @@
use crate::api::{get_response_from_query, Response};
-use crate::database::Delete;
use crate::database::song::{Song, SongPost, SongPut};
+use crate::database::Delete;
use crate::extractors::auth_token::AuthenticationToken;
use crate::AppState;
use actix_web::{delete, get, post, put, web, HttpResponse};