handle root url

This commit is contained in:
Lucy Cifferello
2023-06-15 16:34:23 -06:00
parent 683b9d1712
commit fe908c6fdb
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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