Merge pull request 'Make list photos endpoint a get resource' (#12) from feature/photos-as-get into master
All checks were successful
Core Repos/ImageApi/pipeline/head This commit looks good
All checks were successful
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -17,14 +17,10 @@ use actix_multipart as mp;
|
||||
use actix_web::{
|
||||
delete,
|
||||
error::BlockingError,
|
||||
get, post, put,
|
||||
web::{self, BufMut, BytesMut},
|
||||
get, middleware, post, put,
|
||||
web::{self, BufMut, BytesMut, HttpRequest, HttpResponse, Query},
|
||||
App, HttpServer, Responder,
|
||||
};
|
||||
use actix_web::{
|
||||
middleware,
|
||||
web::{HttpRequest, HttpResponse, Json},
|
||||
};
|
||||
use notify::{watcher, DebouncedEvent, RecursiveMode, Watcher};
|
||||
use rayon::prelude::*;
|
||||
use serde::Serialize;
|
||||
@@ -42,8 +38,8 @@ mod database;
|
||||
mod files;
|
||||
mod video;
|
||||
|
||||
#[post("/photos")]
|
||||
async fn list_photos(_claims: Claims, req: Json<ThumbnailRequest>) -> impl Responder {
|
||||
#[get("/photos")]
|
||||
async fn list_photos(_claims: Claims, req: Query<ThumbnailRequest>) -> impl Responder {
|
||||
info!("{}", req.path);
|
||||
|
||||
let path = &req.path;
|
||||
|
||||
Reference in New Issue
Block a user