Fix parameter error

This commit is contained in:
Christoph Hagen 2020-09-20 12:44:38 +02:00
parent 658f5b186d
commit 19eda61234

View File

@ -107,7 +107,7 @@ func routes(_ app: Application) throws {
}
// Upload an image
app.postCatching("images", "n") { request -> Data in
app.postCatching("images", ":n") { request -> Data in
guard let cap = request.parameters.get("n", as: Int.self) else {
log("Invalid parameter for cap")
throw Abort(.badRequest)