Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Created June 17, 2021 17:47
Show Gist options
  • Save JaniKibichi/b2fa82f555199c381acf79a0f0e5a82b to your computer and use it in GitHub Desktop.
Save JaniKibichi/b2fa82f555199c381acf79a0f0e5a82b to your computer and use it in GitHub Desktop.
package com.janikibichi.routes
import net.liftweb.json._
trait Routes extends LazyLogging with CORSHandler {
implicit val formats: DefaultFormats = DefaultFormats
def routes: server.Route = healthCheckRoutes
def healthCheckRoutes: server.Route = {
corsHandler(
path("health") {
get {
extractRequest { request =>
complete(OK)
}
}
}
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment