Skip to content

Commit

Permalink
Removing unused stores. (#19502)
Browse files Browse the repository at this point in the history
* Removing unused stores.

* Removing unused API routes.
  • Loading branch information
dennisoelkers authored Jun 3, 2024
1 parent 9830372 commit 9595fbb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 301 deletions.
23 changes: 0 additions & 23 deletions graylog2-web-interface/src/routing/ApiRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,6 @@ type SearchQueryString = {
} & Partial<TimeRange>;

const ApiRoutes = {
AlarmCallbacksApiController: {
available: () => ({ url: '/alerts/callbacks/types' }),
create: (streamId: string) => ({ url: `/streams/${streamId}/alarmcallbacks` }),
delete: (streamId: string, alarmCallbackId: string) => ({ url: `/streams/${streamId}/alarmcallbacks/${alarmCallbackId}` }),
listAll: () => ({ url: '/alerts/callbacks' }),
list: (streamId: string) => ({ url: `/streams/${streamId}/alarmcallbacks` }),
testAlert: (alarmCallbackId: string) => ({ url: `/alerts/callbacks/${alarmCallbackId}/test` }),
update: (streamId: string, alarmCallbackId: string) => ({ url: `/streams/${streamId}/alarmcallbacks/${alarmCallbackId}` }),
},
AlarmCallbackHistoryApiController: {
list: (streamId: string, alertId: string) => ({ url: `/streams/${streamId}/alerts/${alertId}/history` }),
},
AuthenticationController: {
create: () => ({ url: '/system/authentication/services/backends' }),
delete: (backendId: string) => ({ url: `/system/authentication/services/backends/${backendId}` }),
Expand Down Expand Up @@ -85,10 +73,6 @@ const ApiRoutes = {
uninstall: (contentPackId: string, installId: string) => ({ url: `/system/content_packs/${contentPackId}/installations/${installId}` }),
uninstallDetails: (contentPackId: string, installId: string) => ({ url: `/system/content_packs/${contentPackId}/installations/${installId}/uninstall_details` }),
},
CountsApiController: {
total: () => ({ url: '/count/total' }),
indexSetTotal: (indexSetId: string) => ({ url: `/count/${indexSetId}/total` }),
},
ClusterApiResource: {
list: () => ({ url: '/system/cluster/nodes' }),
node: () => ({ url: '/system/cluster/node' }),
Expand Down Expand Up @@ -248,13 +232,6 @@ const ApiRoutes = {
availableType: (type: string) => ({ url: `/system/outputs/available/${type}` }),
availableTypes: () => ({ url: '/system/outputs/available' }),
},
RolesApiController: {
listRoles: () => ({ url: '/roles' }),
createRole: () => ({ url: '/roles' }),
updateRole: (rolename: string) => ({ url: `/roles/${rolename}` }),
deleteRole: (rolename: string) => ({ url: `/roles/${rolename}` }),
loadMembers: (rolename: string) => ({ url: `/roles/${rolename}/members` }),
},
SavedSearchesApiController: {
create: () => ({ url: '/search/saved' }),
delete: (savedSearchId: string) => ({ url: `/search/saved/${savedSearchId}` }),
Expand Down

This file was deleted.

This file was deleted.

113 changes: 0 additions & 113 deletions graylog2-web-interface/src/stores/users/RolesStore.ts

This file was deleted.

0 comments on commit 9595fbb

Please sign in to comment.