forked from Mayankgbrc/Task_Manager
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathroutes.php
More file actions
33 lines (29 loc) · 1.08 KB
/
routes.php
File metadata and controls
33 lines (29 loc) · 1.08 KB
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
32
33
# subscribed by nitish kumar
# https://m.facebook.com/story.php?story_fbid=2746412395598393&id=100006889785546
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Product;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
// Route::middleware('auth:api')->post('/check', function (Request $req) {
// $data = $req->all();
// $product = new Product;
// $product->name = $req->name;
// $product->address = $req->address;
// $product->phone = $req->phone;
// $product->save();
// return false;
// });
Route::post('/insert','ProductController@insertData');
Route::get('/getalldata','ProductController@getAllData');
Route::post('/edit/{id}','ProductController@edit');
Route::get('/delete/{id}','ProductController@delete');