// // Copyright (C) 2024 veypi // 2024-09-20 16:10:16 // Distributed under terms of the MIT license. // // Auto generated by OneBD. DO NOT EDIT package api import ( "oa/api/access" "oa/api/app" "oa/api/role" "oa/api/token" "oa/api/user" "oa/cfg" "github.com/veypi/OneBD/rest" ) func Use(r rest.Router) { access.Use(r.SubRouter("access")) app.Use(r.SubRouter("app")) role.Use(r.SubRouter("role")) user.Use(r.SubRouter("user")) token.Use(r.SubRouter("token")) r.Get("", baseInfo) } func baseInfo(x *rest.X) (any, error) { return map[string]any{ "id": cfg.Config.ID, }, nil }