- Fork this repository
- Create a folder to
plugins/communityin your fork. Use dashes to seperate words when naming this folder. - In the folder you created, add a file
index.ts - Create a function within
index.tsto that takes in the Request as a parameter and returns a Response. For example:
export default (request: Request) : Response => {
var exampleNote = {
"note": {
"title": "new title"
"content": "new content",
"source": "new source",
}
}
return new Response(JSON.stringify(exampleNote));
}
- Test your plugin locally to ensure it works as expected
- Create a pull request from your fork to the main repostory
See plugins/community/example for an up-to-date example.