{"size": 276, "ext": "js", "max_stars_repo_path": "src/app/controllers/ShowCompanyController.js", "max_stars_repo_name": "fabriciodanioj/latestPrice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/app/controllers/ShowCompanyController.js", "max_issues_repo_name": "fabriciodanioj/latestPrice", "max_issues_repo_issues_event_min_datetime": "2019-10-04T14:56:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T23:56:10.000Z", "max_forks_repo_path": "src/app/controllers/ShowCompanyController.js", "max_forks_repo_name": "fabriciodanioj/latestPrice", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 21.2307692308, "max_line_length": 53, "alphanum_fraction": 0.634057971}
import Company from "../models/Company"

class ShowCompanyController {
    async show(req, res) {  
        const { _id } = req.headers;

        const info = await Company.findById({ _id });

        return res.json(info);
    }
}

export default new ShowCompanyController();