Skip to content

Commit

Permalink
//[!code ++] の前にスペースを入れる
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Aug 25, 2024
1 parent 10dbc0e commit cf6c005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/chapter2/section2/src/1/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
e.Use(session.Middleware(store))
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{//[!code ++]
AllowOrigins: []string{"http://localhost:5173"},//[!code ++]
AllowMethods: []string{http.MethodGet, http.MethodPost},//[!code ++]
}))//[!code ++]
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{ //[!code ++]
AllowOrigins: []string{"http://localhost:5173"}, //[!code ++]
AllowMethods: []string{http.MethodGet, http.MethodPost}, //[!code ++]
})) //[!code ++]

e.POST("/login", loginHandler)
e.POST("/signup", signUpHandler)
2 changes: 1 addition & 1 deletion docs/chapter2/section2/src/2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ e.Use(session.Middleware(store))

e.POST("/login", loginHandler)
e.POST("/signup", signUpHandler)
e.GET("/ping", func (c echo.Context) error { return c.String(http.StatusOK,"pong")})//[!code ++]
e.GET("/ping", func (c echo.Context) error { return c.String(http.StatusOK,"pong")}) //[!code ++]

withAuth := e.Group("")
withAuth.Use(userAuthMiddleware)
Expand Down

0 comments on commit cf6c005

Please sign in to comment.