add rutor api

This commit is contained in:
YouROK
2023-01-29 20:04:24 +03:00
parent d71c42936d
commit fbd1765331
7 changed files with 428 additions and 0 deletions

12
server/web/api/rutor.go Normal file
View File

@@ -0,0 +1,12 @@
package api
import (
"github.com/gin-gonic/gin"
"server/rutor"
)
func rutorSearch(c *gin.Context) {
query := c.Query("query")
list := rutor.Search(query)
c.JSON(200, list)
}