2016-01-21 02:44:29 +05:30
|
|
|
<?php
|
|
|
|
return [
|
2018-02-28 03:57:35 +05:30
|
|
|
// Oauth module routes
|
|
|
|
'/oauth2/v1/<action>' => 'oauth/authorization/<action>',
|
|
|
|
'POST /v1/oauth2/<type>' => 'oauth/clients/create',
|
|
|
|
'GET /v1/oauth2/<clientId>' => 'oauth/clients/get',
|
|
|
|
'PUT /v1/oauth2/<clientId>' => 'oauth/clients/update',
|
|
|
|
'DELETE /v1/oauth2/<clientId>' => 'oauth/clients/delete',
|
|
|
|
'POST /v1/oauth2/<clientId>/reset' => 'oauth/clients/reset',
|
|
|
|
'GET /v1/accounts/<accountId:\d+>/oauth2/clients' => 'oauth/clients/get-per-account',
|
2020-09-30 23:00:04 +05:30
|
|
|
'GET /v1/accounts/<accountId:\d+>/oauth2/authorized' => 'oauth/clients/get-authorized-clients',
|
|
|
|
'DELETE /v1/accounts/<accountId:\d+>/oauth2/authorized/<clientId>' => 'oauth/clients/revoke-client',
|
2018-02-28 03:57:35 +05:30
|
|
|
'/account/v1/info' => 'oauth/identity/index',
|
2016-08-06 19:06:24 +05:30
|
|
|
|
2018-02-28 03:57:35 +05:30
|
|
|
// Accounts module routes
|
2017-09-19 22:36:16 +05:30
|
|
|
'GET /v1/accounts/<id:\d+>' => 'accounts/default/get',
|
2020-06-12 02:57:02 +05:30
|
|
|
'DELETE /v1/accounts/<id:\d+>' => 'accounts/default/delete',
|
2017-09-19 22:36:16 +05:30
|
|
|
'GET /v1/accounts/<id:\d+>/two-factor-auth' => 'accounts/default/get-two-factor-auth-credentials',
|
|
|
|
'POST /v1/accounts/<id:\d+>/two-factor-auth' => 'accounts/default/enable-two-factor-auth',
|
|
|
|
'DELETE /v1/accounts/<id:\d+>/two-factor-auth' => 'accounts/default/disable-two-factor-auth',
|
|
|
|
'POST /v1/accounts/<id:\d+>/ban' => 'accounts/default/ban',
|
|
|
|
'DELETE /v1/accounts/<id:\d+>/ban' => 'accounts/default/pardon',
|
|
|
|
'/v1/accounts/<id:\d+>/<action>' => 'accounts/default/<action>',
|
|
|
|
|
2018-02-28 03:57:35 +05:30
|
|
|
// Legacy accounts endpoints. It should be removed after frontend will be updated.
|
2017-09-21 22:30:13 +05:30
|
|
|
'GET /accounts/current' => 'accounts/default/get',
|
|
|
|
'POST /accounts/change-username' => 'accounts/default/username',
|
|
|
|
'POST /accounts/change-password' => 'accounts/default/password',
|
|
|
|
'POST /accounts/change-email/initialize' => 'accounts/default/email-verification',
|
|
|
|
'POST /accounts/change-email/submit-new-email' => 'accounts/default/new-email-verification',
|
|
|
|
'POST /accounts/change-email/confirm-new-email' => 'accounts/default/email',
|
|
|
|
'POST /accounts/accept-rules' => 'accounts/default/rules',
|
|
|
|
'GET /two-factor-auth' => 'accounts/default/get-two-factor-auth-credentials',
|
|
|
|
'POST /two-factor-auth' => 'accounts/default/enable-two-factor-auth',
|
|
|
|
'DELETE /two-factor-auth' => 'accounts/default/disable-two-factor-auth',
|
|
|
|
'POST /accounts/change-lang' => 'accounts/default/language',
|
|
|
|
|
2018-02-28 03:57:35 +05:30
|
|
|
// Session server module routes
|
2016-09-07 20:26:30 +05:30
|
|
|
'/minecraft/session/join' => 'session/session/join',
|
|
|
|
'/minecraft/session/legacy/join' => 'session/session/join-legacy',
|
|
|
|
'/minecraft/session/hasJoined' => 'session/session/has-joined',
|
|
|
|
'/minecraft/session/legacy/hasJoined' => 'session/session/has-joined-legacy',
|
2016-09-08 15:37:43 +05:30
|
|
|
'/minecraft/session/profile/<uuid>' => 'session/session/profile',
|
2016-09-21 13:43:43 +05:30
|
|
|
|
2018-02-28 03:57:35 +05:30
|
|
|
// Mojang API module routes
|
2016-09-21 13:43:43 +05:30
|
|
|
'/mojang/profiles/<username>' => 'mojang/api/uuid-by-username',
|
|
|
|
'/mojang/profiles/<uuid>/names' => 'mojang/api/usernames-by-uuid',
|
|
|
|
'POST /mojang/profiles' => 'mojang/api/uuids-by-usernames',
|
2022-01-22 01:39:46 +05:30
|
|
|
'GET /mojang/services/minecraft/profile' => 'mojang/services/profile',
|
2024-06-17 17:32:01 +05:30
|
|
|
'POST /mojang/services/minecraft/profile/lookup/bulk/byname' => 'mojang/api/uuids-by-usernames',
|
2021-03-03 19:34:42 +05:30
|
|
|
|
|
|
|
// authlib-injector
|
|
|
|
'/authlib-injector/authserver/<action>' => 'authserver/authentication/<action>',
|
|
|
|
'/authlib-injector/sessionserver/session/minecraft/join' => 'session/session/join',
|
|
|
|
'/authlib-injector/sessionserver/session/minecraft/hasJoined' => 'session/session/has-joined',
|
|
|
|
'/authlib-injector/sessionserver/session/minecraft/profile/<uuid>' => 'session/session/profile',
|
2021-06-14 00:51:25 +05:30
|
|
|
'/authlib-injector/api/profiles/minecraft' => 'mojang/api/uuids-by-usernames',
|
2023-11-20 06:06:39 +05:30
|
|
|
'/authlib-injector/sessionserver/session/minecraft/profile/lookup/bulk/byname' => 'mojang/api/uuids-by-usernames',
|
2016-01-21 02:44:29 +05:30
|
|
|
];
|