This commit is contained in:
Jackk Goh
2018-03-15 16:11:38 +08:00
commit c1f1ada934
9 changed files with 115 additions and 0 deletions
+25
View File
@@ -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"
}
}
+5
View File
@@ -0,0 +1,5 @@
module.exports = (app) => {
app.get('/api', (req, res) => res.status(200).send({
message: 'Welcome to the Todos API!',
}));
};