mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/node-tutorial.git
synced 2026-08-19 12:34:16 +00:00
init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"development": {
|
||||
"username": "user",
|
||||
"password": "password",
|
||||
"database": "db",
|
||||
"host": "db",
|
||||
"port": 5432,
|
||||
"dialect": "postgres"
|
||||
},
|
||||
"test": {
|
||||
"username": "root",
|
||||
"password": null,
|
||||
"database": "database_test",
|
||||
"host": "127.0.0.1",
|
||||
"port": 5432,
|
||||
"dialect": "postgres"
|
||||
},
|
||||
"production": {
|
||||
"username": "root",
|
||||
"password": null,
|
||||
"database": "database_production",
|
||||
"host": "127.0.0.1",
|
||||
"dialect": "mysql"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = (app) => {
|
||||
app.get('/api', (req, res) => res.status(200).send({
|
||||
message: 'Welcome to the Todos API!',
|
||||
}));
|
||||
};
|
||||
Reference in New Issue
Block a user