1
0
forked from PGL/Clyde

Compare commits

..

2 Commits

Author SHA1 Message Date
ad81ee3647
base msg 2024-03-22 13:55:13 +01:00
b714aeb156
Make app use full space 2024-03-22 13:54:30 +01:00

25
frontend/src/rest/msg.js Normal file
View 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");
}