Skip to content

Commit ef5f313

Browse files
committed
Merge pull request #39 from menelaos/removeslash
Remove leading slashes in routes declaration.
2 parents bd2c122 + a5dff32 commit ef5f313

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

snaplets/heist/templates/docs/tutorials/snaplets-tutorial.lhs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ The next thing we need to do is define an initializer.
9999
> hs <- nestSnaplet "heist" heist $ heistInit "templates"
100100
> fs <- nestSnaplet "foo" foo $ fooInit
101101
> bs <- nestSnaplet "" bar $ nameSnaplet "newname" $ barInit foo
102-
> addRoutes [ ("/hello", writeText "hello world")
103-
> , ("/fooname", with foo namePage)
104-
> , ("/barname", with bar namePage)
105-
> , ("/company", companyHandler)
102+
> addRoutes [ ("hello", writeText "hello world")
103+
> , ("fooname", with foo namePage)
104+
> , ("barname", with bar namePage)
105+
> , ("company", companyHandler)
106106
> ]
107107
> wrapSite (<|> heistServe)
108108
> ref <- liftIO $ newIORef "fooCorp"

0 commit comments

Comments
 (0)