You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2024 veypi <i@veypi.com>
|
|
|
|
|
// 2025-03-04 16:08:06
|
|
|
|
|
// Distributed under terms of the MIT license.
|
|
|
|
|
//
|
|
|
|
|
// Auto generated by OneBD. DO NOT EDIT
|
|
|
|
|
|
|
|
|
|
package api
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/veypi/OneAuth/api/app"
|
|
|
|
|
"github.com/veypi/OneAuth/api/sms"
|
|
|
|
|
"github.com/veypi/OneAuth/api/token"
|
|
|
|
|
"github.com/veypi/OneAuth/api/user"
|
|
|
|
|
"github.com/veypi/OneAuth/libs/auth"
|
|
|
|
|
"github.com/vyes-ai/vigo"
|
|
|
|
|
"github.com/vyes-ai/vigo/contrib/common"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var Router = vigo.NewRouter().UseBefore(auth.CheckJWT).UseAfter(common.JsonResponse, common.JsonErrorResponse)
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
_ = Router.Extend("user", user.Router)
|
|
|
|
|
_ = Router.Extend("token", token.Router)
|
|
|
|
|
_ = Router.Extend("app", app.Router)
|
|
|
|
|
_ = Router.Extend("sms", sms.Router)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var _ = Router.Any("*", vigo.SkipBefore, func(x *vigo.X) error {
|
|
|
|
|
return vigo.ErrNotFound
|
|
|
|
|
})
|