API back-end for my pet project (rewrite from PHP)