Skip to content

Commit fe9070e

Browse files
committed
Moved the current session endpoint to not block future session lists
1 parent 2beb383 commit fe9070e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/bundle/Resources/config/routing.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,13 @@ ibexa.rest.create_session:
11261126
csrf_protection: false
11271127
methods: [POST]
11281128

1129+
ibexa.rest.check_session:
1130+
path: /user/sessions/current
1131+
controller: Ibexa\Rest\Server\Controller\SessionController::checkSessionAction
1132+
methods: [GET]
1133+
defaults:
1134+
csrf_protection: false
1135+
11291136
ibexa.rest.delete_session:
11301137
path: /user/sessions/{sessionId}
11311138
defaults:
@@ -1140,12 +1147,6 @@ ibexa.rest.refresh_session:
11401147
csrf_protection: false
11411148
methods: [POST]
11421149

1143-
ibexa.rest.check_session:
1144-
path: /user/sessions
1145-
controller: Ibexa\Rest\Server\Controller\SessionController::checkSessionAction
1146-
methods: [GET]
1147-
defaults:
1148-
csrf_protection: false
11491150

11501151
# URL aliases
11511152

tests/bundle/Functional/SessionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function testCheckSession(): void
153153
$session = $this->login();
154154
$request = $this->createHttpRequest(
155155
'GET',
156-
'/api/ibexa/v2/user/sessions',
156+
'/api/ibexa/v2/user/sessions/current',
157157
'',
158158
'Session+json',
159159
'',
@@ -176,7 +176,7 @@ public function testCheckSessionWithoutOne(): void
176176
{
177177
$request = $this->createHttpRequest(
178178
'GET',
179-
'/api/ibexa/v2/user/sessions',
179+
'/api/ibexa/v2/user/sessions/current',
180180
'',
181181
'Session+json'
182182
);

0 commit comments

Comments
 (0)