Ready to get started?
Join Adocasts Plus for $8/mo, or sign into an existing Adocasts Plus account, to get access to all of our lessons.
Building with AdonisJS & Inertia #5.1
Splitting Our Routes Between Auth & Web
We'll split our routes into two files: auth and web. Our auth routes file will contain all our authentication-based route definitions and our web routes will contain the remaining.
- Created by
- @tomgobich
- Published
Join the Discussion 4 comments
-
I think that prettier-ignore-start only works for markdown files, as discussed in this issue (https://github.com/prettier/prettier/issues/5287). I'm not sure how you were able to disable prettier for your routes files, so I just added
start/routes/**/*.tsto my .prettierignore.1-
Responding to nathan-reyes
Hi Nathan! Huh - yeah it sure does. 🤔
Oh snap, looks like I disabled Prettier formatting on save for TypeScript files at some point. So, Prettier just isn't running for me unless I paste or explicitly format, sorry about that! Your solution does look to be the recommended approach. I'm going to have to re-enable Prettier and add that myself. Thank you for sharing!!
1
-
-
Hi, thank you for this content.
Unfortunately , subtitles are wrong and correspond to the previous video.1-
Responding to tigerwolf974
Terribly sorry about that, tigerwolf! The subtitles for this lesson have now been corrected. Thank you very much for the heads up!
0
-