pinakes-server: validate GPS coordinate bounds; validate saved search fields and sort_order
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Idca86117aeeff4afd489ee00bb5c70a36a6a6964
This commit is contained in:
parent
18fda530f2
commit
61eb2335d3
4 changed files with 51 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ pub async fn start_transcode(
|
|||
Path(id): Path<Uuid>,
|
||||
Json(req): Json<CreateTranscodeRequest>,
|
||||
) -> Result<Json<serde_json::Value>, ApiError> {
|
||||
if req.profile.is_empty() || req.profile.len() > 255 {
|
||||
return Err(ApiError::bad_request("profile must be 1-255 bytes"));
|
||||
}
|
||||
let job_id = state
|
||||
.job_queue
|
||||
.submit(pinakes_core::jobs::JobKind::Transcode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue