{"size": 879, "ext": "js", "max_stars_repo_path": "dal/out/routing.js", "max_stars_repo_name": "PrisonerM13/flight-control", "max_stars_repo_stars_event_min_datetime": "2017-12-01T21:46:54.000Z", "max_stars_repo_stars_event_max_datetime": "2018-03-04T23:48:39.000Z", "max_issues_repo_path": "dal/out/routing.js", "max_issues_repo_name": "PrisonerM13/flight-control", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dal/out/routing.js", "max_forks_repo_name": "PrisonerM13/flight-control", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.8076923077, "max_line_length": 63, "alphanum_fraction": 0.5051194539}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
class Routing {
    constructor(_collection) {
        this._collection = _collection;
        this.router = express_1.Router()
            .get('/', (req, res) => {
            this._collection.getAll(res, req.query, req.body);
        })
            .get('/:id', (req, res) => {
            this._collection.getOne(res, req.params.id);
        })
            .post('/', (req, res) => {
            this._collection.create(res, req.body);
        })
            .put('/', (req, res) => {
            this._collection.update(res, req.query, req.body);
        })
            .delete('/', (req, res) => {
            this._collection.delete(res, req.query);
        });
    }
}
exports.default = Routing;
//# sourceMappingURL=routing.js.map