当你为应用程序设计URL模式时,你会使用哪些规则?
谢谢。
- 对于帖子列表,使用example.com/post/或example.com/posts/
- 对于新帖子,使用example.com/post/new/或example.com/post/create/
- 对于帖子的列表和详情,使用example.com/posts/ + example.com/post/23/或example.com/post/ + example.com/post/23/
- 对于详情,使用example.com/post/23或example.com/post/23/
- 对于编辑,使用example.com/post/edit/23/或example.com/post/23/edit/
谢谢。