TODO: refactor to structure: router -> controller -> service, possibly use swagger or any other package to define structure of the API server