Put graphql under api (#549)

This commit is contained in:
Mitchell Syer
2023-05-16 20:28:00 -04:00
committed by GitHub
parent 99e1912bfe
commit 54fc3761bf

View File

@@ -106,13 +106,15 @@ object JavalinSetup {
} }
app.routes { app.routes {
path("api/v1/") { path("api/") {
path("v1/") {
GlobalAPI.defineEndpoints() GlobalAPI.defineEndpoints()
MangaAPI.defineEndpoints() MangaAPI.defineEndpoints()
} }
GraphQL.defineEndpoints() GraphQL.defineEndpoints()
} }
} }
}
private fun getOpenApiOptions(): OpenApiOptions { private fun getOpenApiOptions(): OpenApiOptions {
val applicationInfo = Info().apply { val applicationInfo = Info().apply {