13 lines
300 B
TypeScript
13 lines
300 B
TypeScript
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 |