選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

18 行
432 B

  1. const axios = require('axios').default;
  2. async function isEditable(token) {
  3. const response = await axios
  4. .get(`${process.env.backend_url}/api/editable`, {
  5. headers: {
  6. Authorization: `Bearer ${token}`,
  7. },
  8. })
  9. .catch(e => {
  10. // eslint-disable-next-line no-console
  11. console.log("error pull editable");
  12. });
  13. return response ? response.data.data : null;
  14. }
  15. module.exports = { isEditable };