1818$ path = Config::get ('chocolatey.path ' );
1919
2020# Main Route
21- $ app ->get ($ path . '' , 'HomePageController@show ' );
21+ $ app ->get ($ path , 'HomePageController@show ' );
2222
2323/*
2424|--------------------------------------------------------------------------
3030|
3131*/
3232
33+ # Logout User
34+ $ app ->post ($ path . 'api/public/authentication/logout ' , 'LoginController@logout ' );
35+
3336# Maintenance Middleware
3437$ app ->group (['middleware ' => 'maintenance ' ], function () use ($ app , $ path ) {
3538
36- # Main API Request is Forbidden
39+ # Main API Request is Forbidden
3740 $ app ->get ($ path . 'api ' , function () {
3841 return response ('Unauthorized. ' , 401 );
3942 });
4043
41- # Go to Help Page
44+ # Go to Help Page
4245 $ app ->get ($ path . 'api/public/help ' , function () {
4346 return redirect (Config::get ('chocolatey.help ' ));
4447 });
4548
46- # Get Data from a Room
49+ # Get Data from a Room
4750 $ app ->get ($ path . 'api/public/rooms/{room} ' , 'RoomsController@getRoom ' );
4851
49- # Get User Public Data
52+ # Get User Public Data
5053 $ app ->get ($ path . 'api/public/users ' , 'ProfileController@getPublicData ' );
5154
52- # Get User Public Data
55+ # Get User Public Data
5356 $ app ->get ($ path . 'api/public/users/{userId}/profile ' , 'ProfileController@getPublicProfile ' );
5457
55- # Create an User Request
58+ # Create an User Request
5659 $ app ->post ($ path . 'api/public/registration/new ' , 'LoginController@register ' );
5760
58- # Confirm E-mail
61+ # Confirm E-mail
5962 $ app ->post ($ path . 'api/public/registration/activate ' , 'AccountController@confirmActivation ' );
6063
61- # Change Password Request
64+ # Change Password Request
6265 $ app ->post ($ path . 'api/public/forgotPassword/send ' , 'MailController@forgotPassword ' );
6366
64- # Confirm E-mail
67+ # Confirm E-mail
6568 $ app ->post ($ path . 'api/public/forgotPassword/changePassword ' , 'AccountSecurityController@confirmChangePassword ' );
6669
67- # Authenticate User
70+ # Authenticate User
6871 $ app ->post ($ path . 'api/public/authentication/login ' , 'LoginController@login ' );
6972
70- # Middleware that Requires Authentication
73+ # Middleware that Requires Authentication
7174 $ app ->group (['middleware ' => 'auth ' ], function () use ($ app , $ path ) {
72- # Logout User
73- $ app ->post ($ path . 'api/public/authentication/logout ' , 'LoginController@logout ' );
7475
7576 # Client URL
7677 $ app ->get ($ path . 'api/client/clienturl ' , 'ClientController@getUrl ' );
110111
111112 # Habbo Client Loginstep
112113 $ app ->post ($ path . 'api/log/loginstep ' , function () {
113- return response (null , 204 );
114+ return response ()-> json ( null , 204 );
114115 });
115116
116117 # New User Client Check
144145 $ app ->post ($ path . 'api/newuser/room/select ' , 'AccountController@selectRoom ' );
145146 });
146147
147-
148148 /*
149149 |--------------------------------------------------------------------------
150150 | Habbo ShopAPI Routes
155155 |
156156 */
157157
158- # Main ShopAPI Request is Forbidden
158+ # Main ShopAPI Request is Forbidden
159159 $ app ->get ($ path . 'shopapi ' , function () {
160160 return response ('Unauthorized. ' , 401 );
161161 });
162162
163- # Get a List of all Shop Countries
163+ # Get a List of all Shop Countries
164164 $ app ->get ($ path . 'shopapi/public/countries ' , 'ShopController@listCountries ' );
165165
166- # Get the Inventory of a specific Country
166+ # Get the Inventory of a specific Country
167167 $ app ->get ($ path . 'shopapi/public/inventory/{countryCode} ' , 'ShopController@getInventory ' );
168168
169- # Middleware that Requires Authentication
169+ # Middleware that Requires Authentication
170170 $ app ->group (['middleware ' => 'auth ' ], function () use ($ app , $ path ) {
171171 # Get User Purse
172172 $ app ->get ($ path . 'shopapi/purse ' , 'ShopController@getPurse ' );
322322|
323323*/
324324
325- $ app ->get ($ path . 'habbo-web-ads/{interstitial} ' , 'ClientController@getInterstitial ' );
325+ $ app ->get ($ path . 'habbo-web-ads/{interstitial} ' , 'ClientController@getInterstitial ' );
0 commit comments