-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add-redirect-url-setting'
- Loading branch information
Showing
6 changed files
with
14 additions
and
13 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
package io.tvc.spoilerfree | ||
|
||
import java.time.ZonedDateTime | ||
import java.time.format.DateTimeFormatter._ | ||
|
||
import akka.http.scaladsl.model.Uri | ||
import com.typesafe.config.ConfigFactory | ||
|
||
import scala.collection.JavaConverters._ | ||
|
||
package object settings { | ||
private val config = ConfigFactory.load | ||
|
||
lazy val clientId = reddit.ClientId(config.getString("reddit.client-id")) | ||
lazy val clientSecret = reddit.ClientSecret(config.getString("reddit.client-secret")) | ||
lazy val authConfig = reddit.AuthConfig(clientId, clientSecret, "http://localhost:8080/redirect") | ||
lazy val dynamoTable = config.getString("aws.dynamo-table") | ||
private lazy val clientId = reddit.ClientId(config.getString("reddit.client-id")) | ||
private lazy val clientSecret = reddit.ClientSecret(config.getString("reddit.client-secret")) | ||
private lazy val redirectUrl: Uri = config.getString("reddit.redirect-url") | ||
|
||
lazy val tvTimes = config.getStringList("f1.races").asScala.toList | ||
lazy val authConfig = reddit.AuthConfig(clientId, clientSecret, redirectUrl) | ||
lazy val dynamoTable = config.getString("aws.dynamo-table") | ||
lazy val raceDates = config.getStringList("f1.races").asScala.toList | ||
} |