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.
This commit is contained in:
William Carroll 2020-07-24 19:00:29 +01:00
parent ec90748b82
commit 660b8d43e5
4 changed files with 50 additions and 0 deletions

5
src/Main.hs Normal file
View file

@ -0,0 +1,5 @@
module Main where
main :: IO ()
main = do
putStrLn "Working..."