1.0.0 • Published 12 months ago

@kergrit/strapi-todo-simple-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Welcome to strapi-todo-simple-plugin!

Hi! I'm your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

References

Strapi blog by Maxime Castres for main resource

Strapi blog by Ath Tripathi for request @strapi/helper-plugin

I combined from 2 resources because

  • Maxime Castres is missing axiosInstance in tutorial
  • Ath Tripathi is missing 2 components (modal and editModal) in tutorial
  • Fixed some code using request @strapi/helper-plugin instead of axiosInstance
// used request instance
import { request } from "@strapi/helper-plugin";
const rest = await request("/someURL", {
	 method: "GET",
});

// instead of axiosInstance
import axiosInstance from '../../utils/axiosInstance';
await axiosInstance.get("/someURL");