api: added twig, updated composer, added templates, updated controller