// New returns the API V1 Handler with configuration.
New returns the API V1 Handler with configuration.
// New returns the API V1 Handler with configuration .
func New() http.Handler {
	r := chi.NewRouter()
	ur := &UserRouter{
		Repository: &data.UserRepository{
			Data: data.New(),
		},
	}
	r.Mount("/users", ur.Routes())
	pr := &PostRouter{
		Repository: &data.PostRepository{
			Data: data.New(),
		},
	}
	r.Mount("/posts", pr.Routes())
	return r
}
func New ( ) http . Handler { r := chi . NewRouter ( ) ur := & UserRouter { Repository : & data . UserRepository { Data : data . New ( ) , } , } r . Mount ( " " , ur . Routes ( ) ) pr := & PostRouter { Repository : & data . PostRepository { Data : data . New ( ) , } , } r . Mount ( " " , pr . Routes ( ) ) return r }
New returns the API V1 Handler with configuration.
New returns the API V1 Handler with configuration .