api: add optional final slash
Merge pull request #5 from RoxasShadow/master

api: add optional final slash