Skip to content

Commit

Permalink
fix typo in initializeHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
okashoi committed Nov 3, 2023
1 parent 1bc1d9f commit 0c701dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func initializeHandler(c echo.Context) error {
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
}

c.Request().Header.Add("Content-Type", "application/json;chatset=utf-8")
c.Request().Header.Add("Content-Type", "application/json;charset=utf-8")
return c.JSON(http.StatusOK, InitializeResponse{
AdvertiseLevel: 10,
Language: "golang",
Expand Down Expand Up @@ -180,7 +180,6 @@ func main() {
e.DELETE("/api/livestream/:livestream_id/enter", leaveLivestreamHandler)

// user
// FIXME: /user -> /register
e.POST("/api/register", registerHandler)
e.POST("/api/login", loginHandler)
e.GET("/api/user", getUsersHandler)
Expand Down

0 comments on commit 0c701dd

Please sign in to comment.