Skip to content

Commit eb5ef8b

Browse files
author
Marcos Defendi
committed
chore: remove old-way register routes leftovers
1 parent 5b6457c commit eb5ef8b

File tree

1 file changed

+0
-7
lines changed
  • apps/meteor/app/api/server

1 file changed

+0
-7
lines changed

apps/meteor/app/api/server/api.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ const createApi = function _createApi(options: { version?: string; useDefaultAut
4242
export const API: {
4343
api: Router<'/api', any, APIActionHandler>;
4444
v1: APIClass<'/v1'>;
45-
_matrix: Router<'/_matrix', any, APIActionHandler>;
46-
wellKnown: Router<'/.well-known', any, APIActionHandler>;
47-
matrixInternal: Router<'/internal', any, APIActionHandler>;
4845
default: APIClass;
4946
ApiClass: typeof APIClass;
5047
channels?: {
@@ -76,9 +73,6 @@ export const API: {
7673
version: 'v1',
7774
useDefaultAuth: true,
7875
}),
79-
_matrix: new RocketChatAPIRouter('/_matrix'),
80-
wellKnown: new RocketChatAPIRouter('/.well-known'),
81-
matrixInternal: new RocketChatAPIRouter('/internal'),
8276
default: createApi({}),
8377
};
8478

@@ -106,7 +100,6 @@ settings.watch<number>('API_Enable_Rate_Limiter_Limit_Calls_Default', (value) =>
106100
});
107101

108102
export const startRestAPI = () => {
109-
// Register main API routes under /api prefix
110103
(WebApp.rawConnectHandlers as unknown as ReturnType<typeof express>).use(
111104
API.api
112105
.use(remoteAddressMiddleware)

0 commit comments

Comments
 (0)