Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
Merge pull request #25 from rivet-gg/feature/svc-3419
Browse files Browse the repository at this point in the history
Remove remaining chat & party service uses
  • Loading branch information
NathanFlurry authored Nov 13, 2023
2 parents 5acaf49 + 187622c commit afe5755
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,17 +180,9 @@ 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()
})
};

Expand Down

0 comments on commit afe5755

Please sign in to comment.