"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var __1 = require("..");
var routes_1 = require("./routes");
var app1 = __1.init()
    .render('/custom/a', '/b')
    .render('/range/:id', '/range')
    .use(routes_1.router)
    .get('/yo', function (req, res) { return res.send('yo'); })
    .redirect('/redirect/1', '/normal')
    .file('/package.json', './package.json');
var app2 = __1.init({})
    .use(app1)
    .get('/api', function (req, res) { return res.send({ method: 'GET', now: new Date() }); })
    .post('/api', function (req, res) { return res.send({ method: 'POST', body: req.body }); })
    .redirect('/redirect/2', '/normal?color=red')
    .redirect('/redirect/id/:id', function (req) { return "/normal?id=" + req.params.id; })
    .redirect('/login', '/auth/login')
    .static('/test.ui', './node_modules/@tdb/ui.test/static/test.ui')
    .file('/foo.css', './node_modules/mocha/mocha.css');
app2.start();
//# sourceMappingURL=server.nextjs.js.map