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

Function getWP

app/ppa/ppa.controller.js:32–48  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

30 };
31
32 const getWP = async (req, res) => {
33 try {
34 if (!req.query.gameId) {
35 res.status(400).send({
36 error: 'gameId is required.'
37 });
38 } else {
39 let results = await service.getWP(req.query.gameId, req.query.adjustForSpread);
40 res.send(results);
41 }
42 } catch (err) {
43 Sentry.captureException(err);
44 res.status(500).send({
45 error: 'Something went wrong.'
46 });
47 }
48 }
49
50 const getPPAByTeam = async (req, res) => {
51 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected