avatars-api/index.ts

14 lines
349 B
TypeScript
Raw Normal View History

2024-07-07 21:50:52 -05:00
import express, { Express } from 'express';
import avatarsMiddleware from 'adorable-avatars';
import dotenv from 'dotenv';
dotenv.config();
const app: Express = express();
const port = process.env.PORT;
app.use('/', avatarsMiddleware);
app.listen(port, () => {
console.log(`⚡️[server]: Server is running at https://localhost:${port}`);
});