more 404
This commit is contained in:
parent
c3d4c592e2
commit
e4f0fbae5c
|
@ -216,7 +216,7 @@ private[controllers] trait LilaController
|
||||||
|
|
||||||
def notFound(implicit ctx: Context): Fu[Result] = negotiate(
|
def notFound(implicit ctx: Context): Fu[Result] = negotiate(
|
||||||
html =
|
html =
|
||||||
if (HTTPRequest isSynchronousHttp ctx.req) Lobby renderHome Results.NotFound
|
if (HTTPRequest isSynchronousHttp ctx.req) Main notFound ctx.req
|
||||||
else fuccess(Results.NotFound("Resource not found")),
|
else fuccess(Results.NotFound("Resource not found")),
|
||||||
api = _ => fuccess(Results.NotFound(Json.obj("error" -> "Resource not found")))
|
api = _ => fuccess(Results.NotFound(Json.obj("error" -> "Resource not found")))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue