您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

12 行
375 B

  1. const axios = require('axios').default;
  2. async function summaryList(token){
  3. const response = await axios.get(process.env.backend_url+'/api/pintar-summaries?populate=*&sort[0]=id:desc',{
  4. headers: {'Authorization': `Bearer ${token}`}
  5. }).catch((e)=>{
  6. console.log(e.response.body);
  7. });
  8. return (response)?response.data.data:[];
  9. }
  10. module.exports = {summaryList};