"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var __1 = require("..");
var common_1 = require("../server/common");
exports.router = __1.express.router();
exports.router
    .use(myMiddleware)
    .use(__1.middleware.manifest({
    rootDir: common_1.fsPath.resolve('./src/example/manifest'),
    manifestPath: '/manifest',
    resourcePath: '/resource',
}));
var total = 0;
function myMiddleware(req, res, next) {
    if (req.method !== 'GET' || req.url !== '/middleware') {
        return next();
    }
    total += 1;
    res.send({
        msg: 'Middleware Response',
        now: new Date(),
        total: total,
    });
}
exports.myMiddleware = myMiddleware;
//# sourceMappingURL=routes.js.map