ward-wise / ward-wise-front-end

6 stars 4 forks source link

Api endpoints #49

Closed NoahAppelbaum closed 6 months ago

NoahAppelbaum commented 6 months ago

I added some API endpoints for our existing data fetching! I haven't yet integrated your (Sean's) Postgres db, which might require zhuzhing the data fetch methods in the future, but these endpoints should work in any case.

We can now return JSON from: /api/wardcontactinfo /api/wardcontactinfo/[ward] /api/spendingitems -- queryable w/ ward, year, category

Figure this might be nice to show off or at least be able to reference in the presentation!