Commit 2167912e authored by gga19's avatar gga19
Browse files

Solve endpoint now takes /solve/<clue string>/<word length>

parent 7f7d86c4
......@@ -14,5 +14,5 @@ myConf = Conf
clue = ("Peeling paint, profit slack, upset, in a state",10)
main = simpleHTTP myConf $ msum [ dir "solve" $ path $ \s -> ok $ show (solveReturn (s,10))
main = simpleHTTP myConf $ msum [ dir "solve" $ path $ \s -> path $ \n -> ok $ show (solveReturn (s,n))
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment