-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
WIP - more RTK Query.
Showing
9 changed files
with
271 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { api } from "./apiSlice"; | ||
|
||
export const adminApi = api.injectEndpoints({ | ||
endpoints: (builder) => ({ | ||
getLanguages: builder.query({ | ||
query: (arg: void) => "/admin/languages", | ||
}), | ||
getMedia: builder.query({ | ||
query: (arg: void) => "/admin/media", | ||
}), | ||
getRoles: builder.query({ | ||
query: (arg: void) => "/admin/roles", | ||
}), | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { LanguagesData } from "../interfaces"; | ||
import ActionCreator from "../actions"; | ||
import createFetchEditReducer from "./createFetchEditReducer"; | ||
|
||
export default createFetchEditReducer<LanguagesData>(ActionCreator.LANGUAGES); | ||
// import { LanguagesData } from "../interfaces"; | ||
// import ActionCreator from "../actions"; | ||
// import createFetchEditReducer from "./createFetchEditReducer"; | ||
// | ||
// export default createFetchEditReducer<LanguagesData>(ActionCreator.LANGUAGES); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { MediaData } from "../interfaces"; | ||
import ActionCreator from "../actions"; | ||
import createFetchEditReducer from "./createFetchEditReducer"; | ||
|
||
export default createFetchEditReducer<MediaData>(ActionCreator.MEDIA); | ||
// import { MediaData } from "../interfaces"; | ||
// import ActionCreator from "../actions"; | ||
// import createFetchEditReducer from "./createFetchEditReducer"; | ||
// | ||
// export default createFetchEditReducer<MediaData>(ActionCreator.MEDIA); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { RolesData } from "../interfaces"; | ||
import ActionCreator from "../actions"; | ||
import createFetchEditReducer from "./createFetchEditReducer"; | ||
|
||
export default createFetchEditReducer<RolesData>(ActionCreator.ROLES); | ||
// import { RolesData } from "../interfaces"; | ||
// import ActionCreator from "../actions"; | ||
// import createFetchEditReducer from "./createFetchEditReducer"; | ||
// | ||
// export default createFetchEditReducer<RolesData>(ActionCreator.ROLES); |