Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Commit 9515cf9

Browse files
committed
Some Route Organisations & Fixed Logout when Maintenance
1 parent 8fdaea6 commit 9515cf9

2 files changed

Lines changed: 28 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## [1.905](https://github.com/sant0ro/chocolatey/tree/1.905) (2017-02-10)
4+
[Full Changelog](https://github.com/sant0ro/chocolatey/compare/1.901...1.905)
5+
6+
**Closed issues:**
7+
8+
- Articles Pagination [\#6](https://github.com/sant0ro/chocolatey/issues/6)
9+
310
## [1.901](https://github.com/sant0ro/chocolatey/tree/1.901) (2017-02-09)
411
[Full Changelog](https://github.com/sant0ro/chocolatey/compare/1.900...1.901)
512

routes/web.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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
|--------------------------------------------------------------------------
@@ -30,47 +30,48 @@
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');
@@ -110,7 +111,7 @@
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
@@ -144,7 +145,6 @@
144145
$app->post($path . 'api/newuser/room/select', 'AccountController@selectRoom');
145146
});
146147

147-
148148
/*
149149
|--------------------------------------------------------------------------
150150
| Habbo ShopAPI Routes
@@ -155,18 +155,18 @@
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');
@@ -322,4 +322,4 @@
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

Comments
 (0)