80% of your application should be in a lib folder somewhere. And then the remaining 20 %, which is how do you take the request and send the response, that needs to live inside your api foll because that's how you actually handle the response. So i think, and this is how i approach a lot of my things that i'm building quickly, is just yet right, adapt it to the request and then the response that you have there. That will make you much happier.

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