Update error message to include the requested endpoint in app.ts

This commit is contained in:
Pawan Osman
2024-04-10 07:11:33 +03:00
parent 889b121e27
commit 282509ca10
+1 -1
View File
@@ -299,7 +299,7 @@ app.use((req, res) =>
res.status(404).send({
status: false,
error: {
message: `The requested endpoint was not found. please make sure to use "http://localhost:3040/v1" as the base URL.`,
message: `The requested endpoint (${req.method.toLocaleUpperCase()} ${req.path}) was not found. please make sure to use "http://localhost:3040/v1" as the base URL.`,
type: "invalid_request_error",
},
support: "https://discord.pawan.krd",