hackclub / hackathons-backend

Powering https://hackathons.hackclub.com

Home Page:https://hackathons.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API: Expose `Hackathon.pending.count` for Bank admin dashboard

garyhtou opened this issue · comments

The Hack Club Bank admin dashboard currently contains a card/link to the Airtable with the pending count (from Airtable).

image

We should expose the pending count via the API so that the card can reflect the right count.


/api/v1/stats/hackathons

{
  "status": {
    "pending": {
      "meta": {
        "count": 1
      }
    }
  }
}