-
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.
Sørger for at vi gjør status-sjekk uavhengig av Statusplattform (#1142)
* Flyttet status-sjekk kode fra Controller til Service og sørger for at koden som sjekker status kalles hvert 30 minutt * Ryddet litt i imports
- Loading branch information
1 parent
9822f6d
commit 276b75c
Showing
3 changed files
with
47 additions
and
25 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/kotlin/no/nav/familie/baks/mottak/søknad/SøknadStatusController.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,21 @@ | ||
package no.nav.familie.baks.mottak.søknad | ||
|
||
import no.nav.security.token.support.core.api.Unprotected | ||
import org.springframework.http.MediaType | ||
import org.springframework.web.bind.annotation.GetMapping | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@RestController | ||
@RequestMapping(path = ["/api/status"], produces = [MediaType.APPLICATION_JSON_VALUE]) | ||
class SøknadStatusController( | ||
val søknadStatusService: SøknadStatusService, | ||
) { | ||
@GetMapping(value = ["/barnetrygd"]) | ||
@Unprotected | ||
fun statusBarnetrygd(): StatusDto = søknadStatusService.statusBarnetrygd() | ||
|
||
@GetMapping(value = ["/kontantstotte"]) | ||
@Unprotected | ||
fun statusKontantstøtte(): StatusDto = søknadStatusService.statusKontantstøtte() | ||
} |
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