diff --git a/src/main/kotlin/fr/shikkanime/controllers/site/SEOController.kt b/src/main/kotlin/fr/shikkanime/controllers/site/SEOController.kt index feda4cea..0e71df03 100644 --- a/src/main/kotlin/fr/shikkanime/controllers/site/SEOController.kt +++ b/src/main/kotlin/fr/shikkanime/controllers/site/SEOController.kt @@ -71,4 +71,10 @@ class SEOController { contentType = ContentType.Text.Xml ) } + + @Path("c97385827d194199b3a0509ec9221517.txt") + @Get + private fun indexNow(): Response { + return Response.ok("c97385827d194199b3a0509ec9221517", contentType = ContentType.Text.Plain) + } } \ No newline at end of file diff --git a/src/main/kotlin/fr/shikkanime/utils/routes/Response.kt b/src/main/kotlin/fr/shikkanime/utils/routes/Response.kt index edd0f43e..d10c4863 100644 --- a/src/main/kotlin/fr/shikkanime/utils/routes/Response.kt +++ b/src/main/kotlin/fr/shikkanime/utils/routes/Response.kt @@ -19,8 +19,12 @@ open class Response( val contentType: ContentType = ContentType.Application.Json, ) { companion object { - fun ok(data: Any? = null, session: TokenDto? = null): Response = - Response(HttpStatusCode.OK, data = data, session = session) + fun ok( + data: Any? = null, + session: TokenDto? = null, + contentType: ContentType = ContentType.Application.Json + ): Response = + Response(HttpStatusCode.OK, data = data, session = session, contentType = contentType) fun created(data: Any? = null, session: TokenDto? = null): Response = Response(HttpStatusCode.Created, data = data, session = session)