MohamedBeydoun / atlas

An express-typescript code generator
Apache License 2.0
6 stars 0 forks source link

Generate router --routes option allows invalid paths #21

Closed AsFal closed 4 years ago

AsFal commented 4 years ago

For example, no error message is presented when I execute the following command:

atlas generate router newRouter --routes get="/users",post="hello"

MohamedBeydoun commented 4 years ago

ShoulId enforce a "/" at the beginning of each url? Or is there more to it?