strapi-markdown-parser
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "strapi-markdown-parser", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Strapi controller module to parse Markdown to HTML", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,7 +26,11 @@ # Welcome to strapi-markdown-parser 👋 | ||
async find(ctx) { | ||
return md(await strapi.services.{COLLECTION}.find()) | ||
const data = await strapi.services.{COLLECTION}.find(ctx.query) | ||
return md(data) | ||
}, | ||
async findOne(ctx) { | ||
const { id } = ctx.params | ||
return md(await strapi.services.{COLLECTION}.findOne({ id })) | ||
const data = await strapi.services.{COLLECTION}.findOne({ id }) | ||
return md(data) | ||
} | ||
@@ -33,0 +37,0 @@ } |
6964
93