fix fishnet response status code

ios-push-rm-cursor-fishnet
Thibault Duplessis 2016-03-15 02:53:18 +07:00
parent 73caae75bd
commit d05b30efc2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ object Fishnet extends LilaController {
data => api.authenticateClient(data) flatMap {
case None => Unauthorized(jsonError("Invalid or revoked API key")).fuccess
case Some(client) => f(data)(client).map {
case Some(work) => Created(Json toJson work)
case Some(work) => Accepted(Json toJson work)
case _ => NoContent
}
})