Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 327 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 327 Bytes

project

How to Run

$stack build
$stack exec project-exe
# it's now running the web server

# open another terminal

$curl --header "Accept: text/html" localhost:8081/tinyUrl/asdfasdf
<tr><td>asdfasdf</td></tr>
$
$curl --header "Accept: application/json" localhost:8081/tinyUrl/asdfasdf
{"value":"asdfasdf"}$