Created
June 17, 2021 17:47
-
-
Save JaniKibichi/b2fa82f555199c381acf79a0f0e5a82b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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