-
Notifications
You must be signed in to change notification settings - Fork 24
/
routing.php
86 lines (60 loc) · 3.56 KB
/
routing.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* This file is part of the authbucket/oauth2-php package.
*
* (c) Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$app->get('/', 'authbucket_oauth2.tests.default_controller:indexAction')
->bind('index');
$app->get('/admin/refresh_database', 'authbucket_oauth2.tests.default_controller:adminRefreshDatabaseAction')
->bind('admin_refresh_database');
$app->get('/client', 'authbucket_oauth2.tests.client_controller:indexAction')
->bind('client');
$app->get('/demo', 'authbucket_oauth2.tests.demo_controller:indexAction')
->bind('demo');
$app->get('/demo/request/code', 'authbucket_oauth2.tests.demo_controller:requestCodeAction')
->bind('demo_request_code');
$app->get('/demo/request/token', 'authbucket_oauth2.tests.demo_controller:requestTokenAction')
->bind('demo_request_token');
$app->get('/demo/response_type/code', 'authbucket_oauth2.tests.demo_controller:responseTypeCodeAction')
->bind('demo_response_type_code');
$app->get('/demo/response_type/token', 'authbucket_oauth2.tests.demo_controller:responseTypeTokenAction')
->bind('demo_response_type_token');
$app->get('/demo/grant_type/authorization_code', 'authbucket_oauth2.tests.demo_controller:grantTypeAuthorizationCodeAction')
->bind('demo_grant_type_authorization_code');
$app->get('/demo/grant_type/password', 'authbucket_oauth2.tests.demo_controller:grantTypePasswordAction')
->bind('demo_grant_type_password');
$app->get('/demo/grant_type/client_credentials', 'authbucket_oauth2.tests.demo_controller:grantTypeClientCredentialsAction')
->bind('demo_grant_type_client_credentials');
$app->get('/demo/grant_type/refresh_token', 'authbucket_oauth2.tests.demo_controller:grantTypeRefreshTokenAction')
->bind('demo_grant_type_refresh_token');
$app->get('/demo/resource_type/model', 'authbucket_oauth2.tests.demo_controller:resourceTypeModelAction')
->bind('demo_resource_type_model');
$app->get('/demo/resource_type/debug_endpoint', 'authbucket_oauth2.tests.demo_controller:resourceTypeDebugEndpointAction')
->bind('demo_resource_type_debug_endpoint');
$app->get('/oauth2', 'authbucket_oauth2.tests.oauth2_controller:indexAction')
->bind('oauth2');
$app->get('/oauth2/login', 'authbucket_oauth2.tests.oauth2_controller:loginAction')
->bind('oauth2_login');
$app->match('/oauth2/authorize', 'authbucket_oauth2.tests.oauth2_controller:authorizeAction')
->bind('oauth2_authorize');
$app->get('/resource', 'authbucket_oauth2.tests.resource_controller:indexAction')
->bind('resource');
$app->get('/api/oauth2/authorize', 'authbucket_oauth2.oauth2_controller:authorizeAction')
->bind('api_oauth2_authorize');
$app->post('/api/oauth2/token', 'authbucket_oauth2.oauth2_controller:tokenAction')
->bind('api_oauth2_token');
$app->match('/api/oauth2/debug', 'authbucket_oauth2.oauth2_controller:debugAction')
->bind('api_oauth2_debug')
->method('GET|POST');
$app->match('/api/resource/model', 'authbucket_oauth2.oauth2_controller:debugAction')
->bind('api_resource_model');
$app->match('/api/resource/debug_endpoint', 'authbucket_oauth2.oauth2_controller:debugAction')
->bind('api_resource_debug_endpoint');
$app->match('/api/resource/debug_endpoint/cache', 'authbucket_oauth2.oauth2_controller:debugAction')
->bind('api_resource_debug_endpoint_cache');
$app->match('/api/resource/debug_endpoint/invalid_options', 'authbucket_oauth2.oauth2_controller:debugAction')
->bind('api_resource_debug_endpoint_invalid_options');