add api controller
tweak routes