Compare commits
2 Commits
2087666991
...
177f1b3f5b
Author | SHA1 | Date | |
---|---|---|---|
177f1b3f5b | |||
3d7e7a1783 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"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.0",
|
"version": "2.1.1",
|
||||||
"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/${data._id}`,
|
url: '/lesson',
|
||||||
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/:lessonId', (req, res) => {
|
router.put('/lesson', (req, res) => {
|
||||||
res.send({ success: true, body: req.body })
|
res.send({ success: true, body: req.body })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user