Rewrite Fetch & Add Inline Component
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user