Skip to content

Commit

Permalink
Remove chat and party services
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Nov 13, 2023
1 parent 5acaf49 commit bb3b4ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ const config = {
API_PORTAL_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'portal.', '/v1'),
API_IDENTITY_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'identity.', '/v1'),
API_GROUP_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'group.', '/v1'),
API_CHAT_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'chat.', '/v1'),
API_CLOUD_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'cloud.', '/v1'),
API_KV_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'kv.', '/v1'),
API_PARTY_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'party.', '/v1'),

COMMUNITY_URL: 'https://discord.com/invite/aXYfyNxYVn',
DOCUMENTATION_URL: 'https://rivet.gg/docs',
Expand Down
4 changes: 1 addition & 3 deletions src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import * as portal from '@rivet-gg/portal';
import * as identity from '@rivet-gg/identity';
import * as group from '@rivet-gg/group';
import * as chat from '@rivet-gg/chat';
import * as kv from '@rivet-gg/kv';
import * as auth from '@rivet-gg/auth';
import * as party from '@rivet-gg/party';

export const requestHandlerMiddleware = portal.common.middleware.requestHandlerMiddleware;

export { portal, identity, group, auth, chat, kv, party };
export { portal, identity, group, auth, kv };
10 changes: 0 additions & 10 deletions src/utils/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export class GlobalState {
portal: api.portal.PortalService;
identity: api.identity.IdentityService;
group: api.group.GroupService;
chat: api.chat.ChatService;
kv: api.kv.KvService;
party: api.party.PartyService;
};
auth: api.auth.AuthService;
cloud: cloud.CloudService;
Expand Down Expand Up @@ -182,18 +180,10 @@ export class GlobalState {
endpoint: config.ORIGIN_API + '/group',
requestHandler: refreshMiddleware()
}),
chat: new api.chat.ChatService({
endpoint: config.ORIGIN_API + '/chat',
requestHandler: refreshMiddleware()
}),
kv: new api.kv.KvService({
endpoint: config.ORIGIN_API + '/kv',
requestHandler: refreshMiddleware()
}),
party: new api.party.PartyService({
endpoint: config.ORIGIN_API + '/party',
requestHandler: refreshMiddleware()
})
};

this.auth = new api.auth.AuthService({
Expand Down

0 comments on commit bb3b4ab

Please sign in to comment.