prev << How to write an API endpoint in 2016