You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
628 B

import { R } from "../../../shared/utils/helper.js"
import Router from "../../../shared/utils/router.js"
class Pageontroller {
constructor() {}
async indexGet () {
console.log(234);
return R.ResponseSuccess(Math.random())
}
/**
* 路由注册
*/
static createRoutes() {
const controller = new Pageontroller()
const router = new Router()
router.get("", controller.indexGet.bind(controller), { auth: "try" })
router.get("/", controller.indexGet.bind(controller), { auth: "try" })
return router
}
}
export default Pageontroller