Skip to content

Commit d037ffd

Browse files
authored
Update server.go
1 parent 93003a8 commit d037ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func StartServer(port int) {
2121

2222
//InitializeRoutes initializes the routes
2323
func InitializeRoutes() {
24-
e.POST("/search", func(c echo.Context) error {
24+
e.GET("/search", func(c echo.Context) error {
2525
query := c.QueryParam("query")
2626
results := backend.GetQuestionsAndAnswers(backend.RankedQuerySearch(query))
2727
return c.JSON(200, results)

0 commit comments

Comments
 (0)