config of logged routes
This commit is contained in:
parent
8e3ba4ed5f
commit
97717179cf
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
fos_user_profile:
|
fos_user_profile:
|
||||||
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
|
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
|
||||||
prefix: /profile
|
prefix: /profile
|
||||||
|
@ -39,19 +38,19 @@ app_sell_record:
|
||||||
type: annotation
|
type: annotation
|
||||||
|
|
||||||
|
|
||||||
|
# async calls
|
||||||
get_my_products:
|
get_my_products:
|
||||||
path: /get-my-products
|
path: /logged/get-my-products
|
||||||
defaults: { _controller: AppBundle:Default:getMyProducts }
|
defaults: { _controller: AppBundle:Default:getMyProducts }
|
||||||
get_my_expenses:
|
get_my_expenses:
|
||||||
path: /get-my-expenses
|
path: /logged/get-my-expenses
|
||||||
defaults: { _controller: AppBundle:Default:getMyExpenses }
|
defaults: { _controller: AppBundle:Default:getMyExpenses }
|
||||||
save_my_expenses:
|
save_my_expenses:
|
||||||
path: /save-my-expenses
|
path: /logged/save-my-expenses
|
||||||
defaults: { _controller: AppBundle:Default:saveMyExpenses }
|
defaults: { _controller: AppBundle:Default:saveMyExpenses }
|
||||||
|
|
||||||
add_selling:
|
add_selling:
|
||||||
path: /add-selling
|
path: /logged/add-selling
|
||||||
defaults: { _controller: AppBundle:Default:addSelling }
|
defaults: { _controller: AppBundle:Default:addSelling }
|
||||||
|
|
||||||
fos_user:
|
fos_user:
|
||||||
|
|
|
@ -34,6 +34,7 @@ security:
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||||
- { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED }
|
- { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED }
|
||||||
|
- { path: ^/logged$, role: IS_AUTHENTICATED_REMEMBERED }
|
||||||
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||||
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||||
- { path: ^/admin/, role: ROLE_ADMIN }
|
- { path: ^/admin/, role: ROLE_ADMIN }
|
||||||
|
|
|
@ -119,7 +119,7 @@ angular
|
||||||
// http related calls
|
// http related calls
|
||||||
$scope.fetchProductsFromDB = function () {
|
$scope.fetchProductsFromDB = function () {
|
||||||
console.log('fetch products...');
|
console.log('fetch products...');
|
||||||
$http.get('get-my-products').then((rep) => {
|
$http.get('logged/get-my-products').then((rep) => {
|
||||||
|
|
||||||
console.log('ok', rep);
|
console.log('ok', rep);
|
||||||
customCategories = [];
|
customCategories = [];
|
||||||
|
|
Loading…
Reference in New Issue