-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: also get database config from info controller as YAML
- Loading branch information
1 parent
f52d68d
commit cd6536d
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
lapis2/src/main/kotlin/org/genspectrum/lapis/controller/YamlHttpMessageConverter.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,13 @@ | ||
package org.genspectrum.lapis.controller | ||
|
||
import org.genspectrum.lapis.util.YamlObjectMapper | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter | ||
import org.springframework.stereotype.Component | ||
|
||
@Component | ||
class YamlHttpMessageConverter(yamlObjectMapper: YamlObjectMapper) : | ||
AbstractJackson2HttpMessageConverter( | ||
yamlObjectMapper.objectMapper, | ||
MediaType.parseMediaType(LapisMediaType.APPLICATION_YAML), | ||
) |
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