diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index 7227dc9..132bf93 100755 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -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)