fix:memperbarui app dan swager
This commit is contained in:
parent
5c2a2fc21d
commit
f8cdf405bb
|
@ -65,7 +65,7 @@ initializeDatabase()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, () => {
|
||||||
console.log(`Server running on port ${PORT}`);
|
console.log(`Server running on port ${PORT}`);
|
||||||
console.log(`Swagger UI available at http://202.74.74.214/api-sibayam/docs`);
|
console.log(`Swagger UI available at http://localhost:${PORT}/api-sibayam`);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
@ -11,7 +11,7 @@ const swaggerOptions = {
|
||||||
},
|
},
|
||||||
servers: [
|
servers: [
|
||||||
{
|
{
|
||||||
url: 'http://202.74.74.214/', // Development server URL
|
url: 'https://localhost:5000', // Development server URL
|
||||||
description: 'Production Server'
|
description: 'Production Server'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue