Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
api/leaderboard/leadboardRouter.js

Summary

Maintainability
A
0 mins
Test Coverage
const router = require('express').Router();

const {authRequired} = require('../middleware');
const leaderboard = require('./leadBoardModel');
const { crudOperationsManager } = require('../../lib/');

router.get('/', authRequired, (req, res) =>{
    crudOperationsManager.getAll(res, leaderboard.getLeaderBoardData, 'Child')
});

module.exports = router;