iris/_examples/bootstrapper/routes/routes.go
Gerasimos (Makis) Maropoulos 7f9e664b90 Option for Socket Sharding as requested at #1544
Former-commit-id: 0384baf593012377a94344d647ca41121294285a
2020-06-26 20:29:36 +03:00

14 lines
370 B
Go

package routes
import (
"github.com/kataras/iris/v12/_examples/bootstrapper/bootstrap"
)
// Configure registers the necessary routes to the app.
func Configure(b *bootstrap.Bootstrapper) {
b.Get("/", GetIndexHandler)
b.Get("/follower/{id:int64}", GetFollowerHandler)
b.Get("/following/{id:int64}", GetFollowingHandler)
b.Get("/like/{id:int64}", GetLikeHandler)
}