Skip to content

Commit

Permalink
Router for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
RawToast committed Apr 1, 2018
1 parent 8b7fffb commit 1a5db4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dokusho-server/src/main/scala/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ object Main extends StreamApp[IO] {

val readingHistoryService = new ReadingHistoryService(mongo)
val historyService: ReadingHistoryRouter = new ReadingHistoryRouter(readingHistoryService)
val altHistoryService: ReadingHistoryRouter = new AltReadingHistoryRouter(readingHistoryService)

val authHistory = authMiddleware.authenticationMiddleware(historyService.routes)


override def stream(args: List[String], requestShutdown: IO[Unit]): Stream[IO, ExitCode] =
BlazeBuilder[IO]
.bindHttp(8080, "0.0.0.0")
Expand Down

0 comments on commit 1a5db4a

Please sign in to comment.