Skip to content

Commit

Permalink
chore: add index now bing webmaster tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Sep 15, 2024
1 parent dc6b53d commit ad7830c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
8 changes: 6 additions & 2 deletions src/main/kotlin/fr/shikkanime/utils/routes/Response.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ad7830c

Please sign in to comment.