Skip to content

Commit

Permalink
Fixed the api version for get room detail API
Browse files Browse the repository at this point in the history
  • Loading branch information
stevandoMoodle committed Feb 22, 2023
1 parent f338be9 commit a7e297e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions application/src/Controller/SynapseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
/**
* API Controller to serve a mock of the Synapse API.
*
* @Route("/{serverID}/_synapse/admin/v2")
* @Route("/{serverID}/_synapse/admin")
*/
class SynapseController extends AbstractController {

use GeneralTrait, MatrixSynapseTrait;

/**
* @Route("", name="endpoint")
* @Route("/v2", name="endpoint")
*/
public function endpoint() : JsonResponse
{
Expand All @@ -38,7 +38,7 @@ public function endpoint() : JsonResponse
/**
* Handle Synapse user registration.
*
* @Route("/users/{userID}", name="registerUser")
* @Route("/v2/users/{userID}", name="registerUser")
* @param string $serverID
* @param Request $request
* @return JsonResponse
Expand Down Expand Up @@ -244,7 +244,7 @@ private function upsertUser(string $serverID, string $userID, Request $request,
/**
* Invite user into a room.
*
* @Route("/join/{roomID}", name="inviteUser")
* @Route("/v2/join/{roomID}", name="inviteUser")
* @param string $serverID
* @param Request $request
* @return JsonResponse
Expand Down Expand Up @@ -303,7 +303,7 @@ public function inviteUser(string $serverID, string $roomID, Request $request) :
/**
* Delete a room.
*
* @Route("/rooms/{roomID}", methods={"DELETE"}, name="deleteRoom")
* @Route("/v2/rooms/{roomID}", methods={"DELETE"}, name="deleteRoom")
* @param string $serverID
* @param Request $request
* @return JsonResponse
Expand Down Expand Up @@ -341,7 +341,7 @@ public function deleteRoom(string $serverID, string $roomID, Request $request) :
/**
* Get a room detail.
*
* @Route("/rooms/{roomID}", methods={"GET"}, name="roomInfo")
* @Route("/v1/rooms/{roomID}", methods={"GET"}, name="roomInfo")
* @param string $serverID
* @param Request $request
* @return JsonResponse
Expand Down

0 comments on commit a7e297e

Please sign in to comment.