Added backend tests and npm test to Dockerfile

This commit is contained in:
Sebastian Seedorf
2020-11-20 08:42:41 +01:00
parent cfb23f309a
commit 93ed774609
6 changed files with 176 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import {PermManager} from 'pkg-express-utils';
const userRouter = express.Router();
/* GET users listing. */
/* GET user info. */
userRouter.get('/', PermManager.getRouter('userinfo', {action: 'read'}), async (req, res) => {
res.json(await req.getUserInfo() || {});
});