permission.js 309 B

123456789101112
  1. const { config } = require('./common')
  2. const { apiPrefix } = config;
  3. let database = ["sys:authorize:user","sys:authorize:user:add","sys:authorize:user:edit","sys:authorize:user:delete"];
  4. export default {
  5. [`GET ${apiPrefix}/permissions`] (req, res) {
  6. res.status(200).json(database)
  7. },
  8. }