diff options
| author | Andrew <saintruler@gmail.com> | 2020-11-26 16:51:52 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-11-26 16:51:52 +0400 |
| commit | 6907a35ac265c4d4eeb127befea481a84e59ad4a (patch) | |
| tree | c115faf536fe82d0e2a998a4b8a1529e3b6ccf16 /Views.hs | |
| parent | 446602fe336ad1c2a23e3d50d7cd1d1356fcc9de (diff) | |
Added Http parsing
Diffstat (limited to 'Views.hs')
| -rw-r--r-- | Views.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Views.hs b/Views.hs new file mode 100644 index 0000000..47d81e5 --- /dev/null +++ b/Views.hs @@ -0,0 +1,10 @@ +module Views where + +import Request +import Response + +indexGet (Request query url method) = + return $ HtmlResponse 200 "<strong>index</strong>" + +helloGet req = + return $ HtmlResponse 200 "<i>hello</i>"
\ No newline at end of file |