Merge pull request #1237 from c7io-dev/patch3
Fix api/posts routing as previous change breaks existing function