Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
fogfish committed Jul 9, 2023
1 parent e209d84 commit 037a6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/helloworld/helloworld.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func hello() µ.Routable {
µ.URI(µ.Path("hello")),
func(ctx *µ.Context) error {
return ø.Status.OK(
ø.ContentType.TextPlain,
ø.Send("Hello World!"),
ø.ContentType.JSON,
ø.Send(struct{Text string}{"Hello World!"}),
)
},
)
Expand Down

0 comments on commit 037a6d0

Please sign in to comment.