We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93003a8 commit d037ffdCopy full SHA for d037ffd
server/server.go
@@ -21,7 +21,7 @@ func StartServer(port int) {
21
22
//InitializeRoutes initializes the routes
23
func InitializeRoutes() {
24
- e.POST("/search", func(c echo.Context) error {
+ e.GET("/search", func(c echo.Context) error {
25
query := c.QueryParam("query")
26
results := backend.GetQuestionsAndAnswers(backend.RankedQuerySearch(query))
27
return c.JSON(200, results)
0 commit comments