//
// Copyright (C) 2024 veypi <i@veypi.com>
// 2024-09-23 16:28:13
// Distributed under terms of the MIT license.
//
// Auto generated by OneBD. DO NOT EDIT

package app

import (
	"github.com/veypi/vbase/api/app/access"
	"github.com/veypi/vbase/api/app/app_user"
	"github.com/veypi/vbase/api/app/resource"
	"github.com/veypi/vbase/api/app/role"
	"github.com/veypi/vbase/libs/auth"
	"github.com/veypi/vigo"
)

var Router = vigo.NewRouter()
var appRouter = Router.SubRouter("/{app_id}").Use(auth.Check("app", "{app_id}", 2))

func init() {
	appRouter.Extend("/resource", resource.Router)
	appRouter.Extend("/user", app_user.Router)
	appRouter.Extend("/role", role.Router)
	appRouter.Extend("/access", access.Router)
}
