🔧 Appen svarer på isalive og isready
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no> Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no> Co-authored-by: Helene Arnesen <helene.arnesen@nav.no> Co-authored-by: Øydis Kind Refsum <oydis.kind.refsum@nav.no> Co-authored-by: Christian Bülow Skovborg <christian.bulow.skovborg@nav.no>
This commit is contained in:
		
							parent
							
								
									2197a1b5b0
								
							
						
					
					
						commit
						d671beda1d
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		|  | @ -28,6 +28,12 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin | |||
|             get("/") { | ||||
|                 call.respondText("Hello World!") | ||||
|             } | ||||
|             get("/isalive"){ | ||||
|                 call.respondText("ALIVE") | ||||
|             } | ||||
|             get("/isready"){ | ||||
|                 call.respondText("READY") | ||||
|             } | ||||
|             post("/test") { | ||||
|                 val test = call.receive<Test>() | ||||
|                 call.respond(status = HttpStatusCode.Created, message = test) | ||||
|  |  | |||
		Reference in a new issue
	
	 Sindre Kjelsrud
						Sindre Kjelsrud