Axios has a huge feature called interceptors. An interceptor is kind of like middlewar in on the server side. You can do things like at a pi keys, you can add specific headers that need to be added and reject requests if they are not valid. In or thing, you can just wite one interceptor and say, if there is no data property, then create a new object, stick all the data in a data property, and then keep going along. That'l be really handy an a migration without having to do it all at once,. It's would you consider that middleware? Inquotes here, i think so, yesits they call it a intercept

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode