Revert "Don't use trailing slashes in the API"

This reverts commit 4ecdc78bd4cc57b5e309da45f94d3afb5214384c.