base msg
This commit is contained in:
@ -9,6 +9,7 @@ import Profil from "@/Apps/Profil.vue"
|
||||
import Courses from "@/Apps/ManageCourses.vue"
|
||||
import Users from "@/Apps/UsersList.vue"
|
||||
import Students from "@/Apps/StudentsList.vue"
|
||||
import Msg from "@/Apps/Msg.vue"
|
||||
|
||||
const apps = {
|
||||
'/login': LoginPage,
|
||||
@ -17,6 +18,7 @@ const apps = {
|
||||
'/manage-courses' : Courses,
|
||||
'/users-list' : Users,
|
||||
'/students-list' : Students,
|
||||
'/msg' : Msg,
|
||||
}
|
||||
|
||||
const appsList = {
|
||||
|
25
frontend/src/rest/msg.js
Normal file
25
frontend/src/rest/msg.js
Normal file
@ -0,0 +1,25 @@
|
||||
/*******************************************************
|
||||
* File: msg.js
|
||||
* Author: Anthony Debucquoy
|
||||
* Scope: Extension messagerie
|
||||
* Description: Messages frontend api consumer
|
||||
*******************************************************/
|
||||
|
||||
import { restGet } from './restConsumer.js'
|
||||
|
||||
export async function getDiscussions(){
|
||||
return [
|
||||
{
|
||||
id: 1,
|
||||
name: "Discussion#1",
|
||||
members: [1, 2, 3, 4],
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Discussion#2",
|
||||
members: [1, 4],
|
||||
}
|
||||
]
|
||||
return restGet("/discussions");
|
||||
}
|
||||
|
Reference in New Issue
Block a user