-
Notifications
You must be signed in to change notification settings - Fork 120
/
Copy pathroutes.php
31 lines (23 loc) · 1.12 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/products', 'ProductsController@getProducts');
Route::get('/product/{id}', 'ProductController@getProduct');
Route::get('/categories', 'CategoriesController@getCategories');
Route::get('/attributes/{name}', 'AttributesController@getOptions');
Route::get('/basket', 'BasketController@getItems');
Route::get('/basket/add/{id}/{quantity}', 'BasketController@addItem');
Route::get('/basket/remove/{id}', 'BasketController@removeItem');
Route::get('/currencies', 'CurrenciesController@getCurrencies');
Route::get('/account', 'AccountController@getAccount');
Route::post('/account/login', 'AccountController@login');
Route::get('/account/logout', 'AccountController@logout');
Route::post('/account/register', 'AccountController@register');