Fix parameter error
This commit is contained in:
parent
658f5b186d
commit
19eda61234
@ -107,7 +107,7 @@ func routes(_ app: Application) throws {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Upload an image
|
// 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 {
|
guard let cap = request.parameters.get("n", as: Int.self) else {
|
||||||
log("Invalid parameter for cap")
|
log("Invalid parameter for cap")
|
||||||
throw Abort(.badRequest)
|
throw Abort(.badRequest)
|
||||||
|
Loading…
Reference in New Issue
Block a user