Skip to content

Commit

Permalink
Fixed route not using Laravel syntax but Lumen's.
Browse files Browse the repository at this point in the history
Added funding detail.
  • Loading branch information
furic committed Nov 18, 2020
1 parent 5ce4fe2 commit 493bdd1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
16 changes: 15 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,19 @@
"Furic\\RedeemCodes\\RedeemCodesServiceProvider"
]
}
}
},
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/furic"
},
{
"type": "tidelift",
"url": "https://tidelift.com/lifter/package/packagist/furic-redeem-codes/"
},
{
"type": "other",
"url": "https://http://paypal.me/furic"
}
]
}
9 changes: 4 additions & 5 deletions src/routes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
$app->get('/redeem/{code}', 'RedeemController@redeem'); // API
$app->get('/redeem-codes', 'RedeemCodeController@index'); // Web console
$app->post('/redeem-codes', 'RedeemCodeController@create');
$app->delete('/redeem-codes', 'RedeemCodeController@delete');
$app->delete('/redeem-codes', 'RedeemCodeController@test');
Route::get('/redeem/{code}', 'RedeemController@redeem'); // API
Route::get('/redeem-codes', 'RedeemCodeController@index'); // Web console
Route::post('/redeem-codes', 'RedeemCodeController@create');
Route::delete('/redeem-codes', 'RedeemCodeController@delete');

0 comments on commit 493bdd1

Please sign in to comment.