"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
const app = (0, express_1.default)();
const port = 3000;
function myFunc(num) {
    return num * num;
}
app.get('/', (req, res) => {
    res.send('Hello World' + myFunc(5));
});
app.get('/api', (req, res) => {
    res.send('welcome to api');
});
// start Express server
app.listen(port, () => {
    console.log(`server started at http://localhost:${port}`);
});
exports.default = {
    myFunc
};
