about summary refs log tree commit diff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-24T18·00+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-24T18·00+0100
commit660b8d43e5272e2b71b6092b4c879a82c4d861a8 (patch)
tree08e2be141393a591349618d7b8a426887f79ae21 /src/Main.hs
parentec90748b827edcd465020acd5bd23ae6a01ba37a (diff)
Support a basic API
Use Servant to create a REST API supporting the following routes:
- GET /number
- POST /other

The server interacts with a SQLite database.
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
new file mode 100644
index 000000000000..7ec8d9f8ca82
--- /dev/null
+++ b/src/Main.hs
@@ -0,0 +1,5 @@
+module Main where
+
+main :: IO ()
+main = do
+  putStrLn "Working..."