DEV Community

Discussion on: 🧑‍💻 Getting session data in your Sapper server routes and components

Collapse
 
danawoodman profile image
Dana Woodman

I'm pretty much using Sapper defaults. In the article I show the URLs of the modified files. Other than that, it will depend mostly on the type of app I'm building but I'll have a src/components for components and then other context specific folders as needed

Collapse
 
kvetoslavnovak profile image
kvetoslavnovak

So you have middlewares in src/middlewares and only server api in src/routes/api/?

Thread Thread
 
danawoodman profile image
Dana Woodman

For my current project I have a few folders for other code but it's project specific. I prefer to group by "domain". Eg i have a folder for calculations (src/calculations) but all that is personal preference.