fix fishnet response status code

This commit is contained in:
Thibault Duplessis 2016-03-15 02:53:18 +07:00
parent 73caae75bd
commit d05b30efc2

View file

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