Compare commits
No commits in common. "177f1b3f5be487a24f1e91305bccf6d87a981d0b" and "2087666991fd2a713f98486a3df1baf7ac9a9168" have entirely different histories.
177f1b3f5b
...
2087666991
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "2.1.1",
|
"version": "2.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "2.1.1",
|
"version": "2.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/icons": "^2.1.1",
|
"@chakra-ui/icons": "^2.1.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "2.1.1",
|
"version": "2.1.0",
|
||||||
"description": "inno-js platform journal ui repo",
|
"description": "inno-js platform journal ui repo",
|
||||||
"main": "./src/index.tsx",
|
"main": "./src/index.tsx",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -81,7 +81,7 @@ export const api = createApi({
|
|||||||
updateLesson: builder.mutation<BaseResponse<Lesson>, Partial<Lesson> & Pick<Lesson, '_id'>>({
|
updateLesson: builder.mutation<BaseResponse<Lesson>, Partial<Lesson> & Pick<Lesson, '_id'>>({
|
||||||
query: (data) => ({
|
query: (data) => ({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
url: '/lesson',
|
url: `/lesson/${data._id}`,
|
||||||
body: data,
|
body: data,
|
||||||
}),
|
}),
|
||||||
invalidatesTags: ['LessonList'],
|
invalidatesTags: ['LessonList'],
|
||||||
|
@ -49,7 +49,7 @@ router.delete('/lesson/:lessonId', (req, res) => {
|
|||||||
res.send({ success: true, body: { ok: true }})
|
res.send({ success: true, body: { ok: true }})
|
||||||
})
|
})
|
||||||
|
|
||||||
router.put('/lesson', (req, res) => {
|
router.put('/lesson/:lessonId', (req, res) => {
|
||||||
res.send({ success: true, body: req.body })
|
res.send({ success: true, body: req.body })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user