13 lines
237 B
TypeScript
13 lines
237 B
TypeScript
import {hello} from './handlers.ts';
|
|
import express from "express";
|
|
|
|
export const foo = 100;
|
|
|
|
const app = express()
|
|
const port = 3000
|
|
|
|
app.get("/", hello)
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Example app listening on port ${port}`)
|
|
}) |