Started update user route
This commit is contained in:
1 parent
5fa73a1f17
commit
d84a0f9c87
7 files changed
+125
-46
No files matched your search
+6
-6
@@ -63,12 +63,6 @@ app.use((req, res, next) => {
|
||||
app.use("/api/v1/auth", authRouter);
|
||||
app.use("/api/v1/monitors", verifyJWT, monitorRouter);
|
||||
|
||||
/**
|
||||
* Error handler middleware
|
||||
* MUST be called after all routes
|
||||
*/
|
||||
app.use(handleErrors);
|
||||
|
||||
// Testing email service
|
||||
// app.use('/sendEmail', async (req, res) => {
|
||||
// const response = sendEmail(['veysel.boybay@bluewavelabs.ca'], 'Testing email service', '<h1>Testing Bluewavelabs</h1>');
|
||||
@@ -86,4 +80,10 @@ app.use("/api/v1/healthy", (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Error handler middleware
|
||||
* Should be called last
|
||||
*/
|
||||
app.use(handleErrors);
|
||||
|
||||
connectDbAndRunServer(app, db);
|
||||
Reference in new issue
Block a user