Rewrite Fetch & Add Inline Component

This commit is contained in:
Paul
2023-08-23 18:01:54 +08:00
parent bf62f2a297
commit 65b2b86b78
8 changed files with 142 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { PlasmoMessaging } from "@plasmohq/messaging"
const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
const message = await fetch('https://paul.ren/api/note').then((res) => res.json());
console.log(message);
res.send({
message
})
}
export default handler