private setGet() {
app.get('/', keycloak.protecte(), (req, res, next)=>{
new GroupCtrl().getGroupList(req, res, next);
});
}
没有权限时如何处理?
例如
private setGet() {
app.get('/', keycloak.protecte(), (req, res, next)=>{
new GroupCtrl().getGroupList(req, res, next);
}).catch( err => {
colsole.log("error");
};
}