Closed Ananto30 closed 2 years ago
Can you please elaborate more? Are you talking about createPost API? @Ananto30
Yes, createPost
. Let me elaborate more -
createPost
now takes text
in body, replace that with url
url
is only a valid URL, not other text or anything. We will only allow posting a URL or link like https://github.com/Ananto30/zeroFor now, you don't need to focus on saving, cause after this task https://github.com/Ananto30/golpo-express/issues/3 we will get the metadata from the URL and save it accordingly.
Is it more clear? @alammoiz 😃
And thanks a lot for your contributions 😃🙌
Yes make sense, Please assign it to me :) @Ananto30
Created PR, please review it @Ananto30 https://github.com/Ananto30/golpo-express/pull/11
Context
As we will only allow users to share links from now on, we will only take URL in
/api/post
POST request.Task
/api/post
takestext
in body, change it to 'url`.url
domain in this list, send a error message "Adult contents are not allowed".