Configure routing
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package indexer
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func SetupRoutes(r *gin.RouterGroup) {
|
||||
r.GET("/", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"message": "hello from indexer"})
|
||||
})
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
package indexer
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
import ()
|
||||
|
||||
type Indexer interface {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user