Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120837697
api.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
api.php
View Options
<?php
use
Illuminate\Http\Request
;
/*
|--------------------------------------------------------------------------
| 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
::
group
(
[
'middleware'
=>
'api'
,
'prefix'
=>
'auth'
],
function
(
$router
)
{
Route
::
post
(
'login'
,
'API
\A
uthController@login'
);
Route
::
group
(
[
'middleware'
=>
'auth:api'
],
function
(
$router
)
{
Route
::
get
(
'info'
,
'API
\A
uthController@info'
);
Route
::
post
(
'logout'
,
'API
\A
uthController@logout'
);
Route
::
post
(
'refresh'
,
'API
\A
uthController@refresh'
);
}
);
}
);
Route
::
group
(
[
'domain'
=>
\config
(
'app.domain'
),
'middleware'
=>
'api'
,
'prefix'
=>
'auth'
],
function
(
$router
)
{
Route
::
post
(
'password-reset/init'
,
'API
\P
asswordResetController@init'
);
Route
::
post
(
'password-reset/verify'
,
'API
\P
asswordResetController@verify'
);
Route
::
post
(
'password-reset'
,
'API
\P
asswordResetController@reset'
);
Route
::
get
(
'signup/plans'
,
'API
\S
ignupController@plans'
);
Route
::
post
(
'signup/init'
,
'API
\S
ignupController@init'
);
Route
::
post
(
'signup/verify'
,
'API
\S
ignupController@verify'
);
Route
::
post
(
'signup'
,
'API
\S
ignupController@signup'
);
}
);
Route
::
group
(
[
'domain'
=>
\config
(
'app.domain'
),
'middleware'
=>
'auth:api'
,
'prefix'
=>
'v4'
],
function
()
{
Route
::
apiResource
(
'domains'
,
API\V4\DomainsController
::
class
);
Route
::
get
(
'domains/{id}/confirm'
,
'API
\V
4
\D
omainsController@confirm'
);
Route
::
get
(
'domains/{id}/status'
,
'API
\V
4
\D
omainsController@status'
);
Route
::
apiResource
(
'entitlements'
,
API\V4\EntitlementsController
::
class
);
Route
::
apiResource
(
'packages'
,
API\V4\PackagesController
::
class
);
Route
::
apiResource
(
'skus'
,
API\V4\SkusController
::
class
);
Route
::
apiResource
(
'users'
,
API\V4\UsersController
::
class
);
Route
::
get
(
'users/{id}/status'
,
'API
\V
4
\U
sersController@status'
);
Route
::
apiResource
(
'wallets'
,
API\V4\WalletsController
::
class
);
Route
::
get
(
'wallets/{id}/transactions'
,
'API
\V
4
\W
alletsController@transactions'
);
Route
::
get
(
'wallets/{id}/receipts'
,
'API
\V
4
\W
alletsController@receipts'
);
Route
::
get
(
'wallets/{id}/receipts/{receipt}'
,
'API
\V
4
\W
alletsController@receiptDownload'
);
Route
::
post
(
'payments'
,
'API
\V
4
\P
aymentsController@store'
);
Route
::
get
(
'payments/mandate'
,
'API
\V
4
\P
aymentsController@mandate'
);
Route
::
post
(
'payments/mandate'
,
'API
\V
4
\P
aymentsController@mandateCreate'
);
Route
::
put
(
'payments/mandate'
,
'API
\V
4
\P
aymentsController@mandateUpdate'
);
Route
::
delete
(
'payments/mandate'
,
'API
\V
4
\P
aymentsController@mandateDelete'
);
}
);
Route
::
group
(
[
'domain'
=>
\config
(
'app.domain'
),
],
function
()
{
Route
::
post
(
'webhooks/payment/{provider}'
,
'API
\V
4
\P
aymentsController@webhook'
);
}
);
Route
::
group
(
[
'domain'
=>
'admin.'
.
\config
(
'app.domain'
),
'middleware'
=>
[
'auth:api'
,
'admin'
],
'prefix'
=>
'v4'
,
],
function
()
{
Route
::
apiResource
(
'domains'
,
API\V4\Admin\DomainsController
::
class
);
Route
::
get
(
'domains/{id}/confirm'
,
'API
\V
4
\A
dmin
\D
omainsController@confirm'
);
Route
::
apiResource
(
'entitlements'
,
API\V4\Admin\EntitlementsController
::
class
);
Route
::
apiResource
(
'packages'
,
API\V4\Admin\PackagesController
::
class
);
Route
::
apiResource
(
'skus'
,
API\V4\Admin\SkusController
::
class
);
Route
::
apiResource
(
'users'
,
API\V4\Admin\UsersController
::
class
);
Route
::
post
(
'users/{id}/suspend'
,
'API
\V
4
\A
dmin
\U
sersController@suspend'
);
Route
::
post
(
'users/{id}/unsuspend'
,
'API
\V
4
\A
dmin
\U
sersController@unsuspend'
);
Route
::
apiResource
(
'wallets'
,
API\V4\Admin\WalletsController
::
class
);
Route
::
post
(
'wallets/{id}/one-off'
,
'API
\V
4
\A
dmin
\W
alletsController@oneOff'
);
Route
::
get
(
'wallets/{id}/transactions'
,
'API
\V
4
\A
dmin
\W
alletsController@transactions'
);
Route
::
apiResource
(
'discounts'
,
API\V4\Admin\DiscountsController
::
class
);
}
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:48 PM (3 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
74/5a/0adefb622aa28ad7e533124eef07
Default Alt Text
api.php (4 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline