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 (
|
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
"github.com/veypi/OneAuth/api/app"
|
|
|
|
|
"github.com/veypi/OneAuth/api/token"
|
|
|
|
|
"github.com/veypi/OneAuth/api/user"
|
|
|
|
|
"github.com/vyes/vigo"
|
|
|
|
|
"github.com/vyes/vigo/contrib/common"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var Router = vigo.NewRouter().UseAfter(common.JsonResponse, common.JsonErrorResponse)
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
_ = Router.Extend("user", user.Router)
|
|
|
|
|
_ = Router.Extend("token", token.Router)
|
|
|
|
|
_ = Router.Extend("app", app.Router)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var _ = Router.Any("*", func(x *vigo.X) error {
|
|
|
|
|
return fmt.Errorf("404")
|
|
|
|
|
})
|