Skip to content

Commit

Permalink
#324 Rest Post almost done except edit save
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorr.it committed Jan 5, 2023
1 parent baccd49 commit 9266ece
Show file tree
Hide file tree
Showing 18 changed files with 766 additions and 585 deletions.
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ nelmio_cors:
fos_rest:
zone:
- { path: ^/api/* }
- { path: ^/vue/* }
- { path: ^/rest/* }
body_listener: true
format_listener:
rules:
Expand Down
11 changes: 8 additions & 3 deletions app/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ api:
type: rest
prefix: /api

vue_product:
resource: "@AppBundle/Controller/VueProductController.php"
rest_get_product:
resource: "@AppBundle/Controller/ProductRestGetController.php"
type: rest
prefix: /vue/product
prefix: /rest/get/product

rest_post_product:
resource: "@AppBundle/Controller/ProductRestPostController.php"
type: rest
prefix: /rest/post/product

app:
resource: "@AppBundle/Controller/"
Expand Down
Loading

0 comments on commit 9266ece

Please sign in to comment.