1
0
Fork 0

feat(org): Also allow the creation of blog posts

This commit is contained in:
Joost De Cock 2023-08-18 17:27:13 +02:00
parent 4532bb6654
commit e0e242a66c
4 changed files with 538 additions and 13 deletions

View file

@ -311,10 +311,10 @@ Backend.prototype.isSlugAvailable = async function ({ slug, type }) {
}
/*
* Create showcase Pull Request
* Create showcase/blog post (pull request)
*/
Backend.prototype.createShowcasePr = async function (data) {
return responseHandler(await api.post(`/flows/pr/showcase/jwt`, data, this.auth), 201)
Backend.prototype.createPost = async function (type, data) {
return responseHandler(await api.post(`/flows/pr/${type}/jwt`, data, this.auth), 201)
}
/*