<aside> 📍 src/server/routers/apiRouters.js
</aside>
Defines routers and helper functions that process entry points/APIs
createMessages(tokens, title, body, data)Takes token object from DynamoDB and takes title, body, data from user and parses all four into Expo’s message format.
handleTickets(tickets)Takes in tickets and batches them into chunks using chunkPushNotificationReceiptIds. Asynchronously processes each chunk via getPushNotificationReceiptAsync while checking for any errors.
extractArticleSlug(url)Takes in URL of article and parses it to slug (for example, turns "[<https://www.michigandaily.com/campus-life/umich-class-of-2026-by-the-numbers/>](<https://www.michigandaily.com/campus-life/umich-class-of-2026-by-the-numbers/>)" to "umich-class-of-2026-by-the-numbers".
const convertSlugToId(slug)Uses wordpress API to get article data via fetch. Returns article data in json format.