Commit 77987333 authored by Konrad Borowski's avatar Konrad Borowski

Ensure api/v1/pastes requires POST request

parent 06fb0a03
Pipeline #93367333 passed with stage
in 9 minutes and 29 seconds
......@@ -119,6 +119,7 @@ fn api_v1(pool: PgPool) -> BoxedFilter<(impl Reply,)> {
.and_then(api_v1::languages::languages);
let pastes = warp::path("pastes")
.and(warp::path::end())
.and(warp::post2())
.and(warp::body::content_length_limit(1_000_000))
.and(warp::body::form())
.and(connection(pool))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment