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.
OneAuth/api/init.go

32 lines
620 B
Go

7 months ago
//
// 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"
"oa/api/app"
"oa/api/token"
"oa/api/user"
"github.com/veypi/OneBD/rest"
"github.com/veypi/OneBD/rest/middlewares"
)
var Router = rest.NewRouter().UseAfter(middlewares.JsonResponse, middlewares.JsonErrorResponse)
var (
_ = Router.Extend("user", user.Router)
_ = Router.Extend("token", token.Router)
_ = Router.Extend("app", app.Router)
)
6 months ago
var _ = Router.Any("*", func(x *rest.X) error {
7 months ago
return fmt.Errorf("404")
6 months ago
})