MCPcopy Create free account
hub / github.com/CFBD/cfb-api / getAdvancedBoxScore

Function getAdvancedBoxScore

app/stats/stats.controller.js:101–121  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

99 };
100
101 const getAdvancedBoxScore = async (req, res) => {
102 try {
103 if (!req.query.gameId) {
104 res.status(400).send({
105 error: 'gameId must be specified'
106 });
107 } else if (!parseInt(req.query.gameId)) {
108 res.status(400).send({
109 error: 'gameId must be numeric'
110 });
111 } else {
112 const result = await service.getAdvancedBoxScore(req.query.gameId);
113 res.send(result);
114 }
115 } catch (err) {
116 Sentry.captureException(err);
117 res.status(500).send({
118 error: 'something went wrong'
119 });
120 }
121 }
122
123 return {
124 getTeamStats,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected