-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
la til et webapi + fikset litt logging
- Loading branch information
1 parent
12df674
commit d4d7b3a
Showing
5 changed files
with
32 additions
and
97 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/no/nav/pensjon/opptjening/filadapter/web/AdminWebApi.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package no.nav.pensjon.opptjening.filadapter.web | ||
|
||
import no.nav.pensjon.opptjening.filadapter.log.NAVLog | ||
import no.nav.security.token.support.core.api.Protected | ||
import org.springframework.http.ResponseEntity | ||
import org.springframework.web.bind.annotation.GetMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@RestController | ||
@Protected | ||
class AdminWebApi( | ||
) { | ||
companion object { | ||
private val log = NAVLog(AdminWebApi::class) | ||
} | ||
|
||
@GetMapping("/ping") | ||
fun ping(): ResponseEntity<String> { | ||
log.open.info("Sa hei") | ||
return ResponseEntity.ok("pong") | ||
} | ||
} |