Skip to content

Commit

Permalink
Merge pull request #252 from rosslebeau/controller-resources-route-fix
Browse files Browse the repository at this point in the history
POST request routing from resource()
  • Loading branch information
loganwright committed May 15, 2016
2 parents 30a985d + a9ca33b commit a7cb54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Vapor/Routing/Application+Route.swift
Expand Up @@ -54,7 +54,7 @@ extension Application {

//POST /entities
self.post(path) { request in
return try controllerFactory().index(request)
return try controllerFactory().store(request)
}

//GET /entities/:id
Expand Down

0 comments on commit a7cb54f

Please sign in to comment.