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