summaryrefslogtreecommitdiff
path: root/app/Routes.hs
diff options
context:
space:
mode:
authorAndrew Guschin <guschin.drew@gmail.com>2023-03-05 13:45:37 +0400
committerAndrew Guschin <guschin.drew@gmail.com>2023-03-05 13:47:41 +0400
commita0e8e5a91d15ed8c79f4a1b5914d3a6242c0cbd3 (patch)
tree76f76788523a16c0db8cb8f3a90b23912acd37d4 /app/Routes.hs
parentdd73de2e563c332c5a90bb21c5c7e6cbebc0ab86 (diff)
Migrated project to cabal
Diffstat (limited to 'app/Routes.hs')
-rw-r--r--app/Routes.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/Routes.hs b/app/Routes.hs
new file mode 100644
index 0000000..3dbb3aa
--- /dev/null
+++ b/app/Routes.hs
@@ -0,0 +1,14 @@
+module Routes where
+
+import qualified Data.Text as T
+
+import Web.Response
+import Web.Request
+import Web.Router
+import Web.Utils
+import Web.Http
+
+import Views
+
+routesTable = [ Route indexGet (T.pack "/") GET
+ , Route helloGet (T.pack "/hello") GET ] \ No newline at end of file