v1.0.0 #28
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue