Skip to content

Commit

Permalink
Modify environmental variables in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kohei-s committed Oct 16, 2023
1 parent 52529dd commit 80370b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.neuefische.koheis.backend.converter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
Expand All @@ -9,6 +10,7 @@ public class GooConfig {
@Value("${goo.api.id}")
private String apiId;

@Bean
public String getId() {
return apiId;
}
Expand Down
2 changes: 2 additions & 0 deletions backend/src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
de.flapdoodle.mongodb.embedded.version=3.6.5
deepl.api.key=test:fx
goo.api.id=test
goo.api.url=test

0 comments on commit 80370b9

Please sign in to comment.