From fe908c6fdba5e519d4a05e7683cca36f76213359 Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:34:23 -0600 Subject: [PATCH] handle root url --- config/routes | 2 ++ src/Application.hs | 1 + 2 files changed, 3 insertions(+) diff --git a/config/routes b/config/routes index e76519a..85c7873 100644 --- a/config/routes +++ b/config/routes @@ -1,3 +1,5 @@ +/ RootR GET + -- EOS API V0 /eos/v0/latest EosVersionR GET -- get eos information /eos/v0/eos.img EosR GET -- get eos.img diff --git a/src/Application.hs b/src/Application.hs index 839a590..b00c6bb 100644 --- a/src/Application.hs +++ b/src/Application.hs @@ -213,6 +213,7 @@ import System.Directory (createDirectoryIfMissing) import System.Posix.Process (exitImmediately) import System.Time.Extra (sleep) import Yesod (YesodPersist (runDB)) +import Handler.Root -- This line actually creates our YesodDispatch instance. It is the second half