Added TODO items.
authorsabadev <saba@sabadev.xyz>
Wed, 17 Mar 2021 18:56:47 +0000 (14:56 -0400)
committersabadev <dev@sabadev.xyz>
Tue, 13 Apr 2021 01:16:24 +0000 (21:16 -0400)
src/Server.hs

index 6080973..bc53f56 100644 (file)
@@ -22,6 +22,8 @@ apiProxy = Proxy
 
 type Api = Page :<|> Themes
 type Page = MainPage :<|> BlogPost
+-- TODO Turn MainPage into another BlogPost, and instead have some index.md file that I can look for.
+-- Perhaps have a config.json file to specify the index.md file and the static directory location.
 type MainPage = ThemeParam :> Get '[HTML] (Html ())
 type BlogPost = "blog" :> ThemeParam :> Capture "id" BlogId :> Get '[HTML] (Html ())
 type Themes = DarkTheme :<|> LightTheme
@@ -30,6 +32,7 @@ type LightTheme = "light" :> Get '[CSS] C.Css
 type ThemeParam = QueryParam "light" Bool
 
 type BlogId = FilePath
+-- TODO Use a ReaderT monad to insert this value into functions instead of passing it in explicitly.
 type UseLightTheme = Maybe Bool
 
 api :: Server Api