"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.api = void 0;
const express = require("express");
function errorHandler(err, req, res, next) {
    console.error(err.stack); // tslint:disable-line:no-console
    next(err);
}
exports.api = express()
    .use(errorHandler)
    .get('/api/health', (req, res) => {
    res.status(200).send({
        uptime: Math.floor(process.uptime()),
    });
})
    .get('/api/config', (req, res) => {
    res.send({
        // storage: 'LocalStorageService',
        storage: 'InMemoryStorageService',
    });
});
//# sourceMappingURL=api.js.map