v1.0.0 #28

Merged
bizcochito merged 147 commits from develop into main 2024-01-14 19:49:34 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit bf7961f1ca - Show all commits

View File

@ -21,8 +21,10 @@
},
"dependencies": {
"@types/express": "^4.17.21",
"@types/express-list-endpoints": "^6.0.3",
"@types/mongoose": "^5.11.97",
"express": "^4.18.2",
"express-list-endpoints": "^6.0.0",
"mongoose": "^8.0.3"
}
}

View File

@ -1,13 +1,15 @@
import express from "express";
import mongoose from "mongoose";
import ImageModel from "./ImageModel";
import listEndpoints from "express-list-endpoints";
export const app = express();
app.use(express.json());
app.get("/", (_, res) => {
res.json({ message: "Blazing fast 🚀" });
const endpoints = listEndpoints(app);
res.json({ endpoints });
});
app.get("/images", async (_, res) => {