fresh
fresh copied to clipboard
`fresh routes add <pattern>`
A subcommand to create a new route file at the given pattern. Automatically runs fresh manifest
after creating the new route.
How should this behave with a complex pattern that isnt FS friendly? or more specifically, what path would it create for such a pattern to then use the override?
How about fresh routes add <pattern> [path]
, and it will error in case of a non-fs friendly pattern
with a message saying that path
needs to be specified?
I was imagining this <pattern>
here is just the file path name (so users/[id]
for example. For advanced patterns, we can add a --custom-pattern
flag or something.
No CLI, so isn't needed anymore.