-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.ini
14 lines (11 loc) · 936 Bytes
/
routes.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[ROUTES]
GET @getBlog: /blog = App\Blog\Controllers\BlogController->getIndex
GET @getPosts: /blog/posts = App\Blog\Controller\PostController->getAll
GET @getPost: /blog/post/@post = App\Blog\Controllers\PostController->getPost
GET @getPostComment: /blog/post/@post/comments = App\Blog\Controllers\CommentController->getComments
POST @postComment: /blog/post/@post/comment = App\Blog\Controllers\CommentController->postComment
PUT @editComment: /blog/post/@post/comment/edit = App\Blog\Controllers\CommentController->editComment
DELETE @deleteComment: /blog/post/@post/comment = App\Blog\Controllers\CommentController->deleteComment
GET @getPostCategory: /blog/post/@post/category = App\Blog\Controllers\CategoryController->getPostCategory
GET @getCategories: /blog/category = App\Blog\Controllers\CategoryController->getAll
GET @getPostByCategory: /blog/category/@category = App\Blog\Controllers\CategoryController->getPostByCategory