Skip to content

Commit

Permalink
Added the sign up connection
Browse files Browse the repository at this point in the history
  • Loading branch information
armandodecanha committed Jul 29, 2019
1 parent 695360d commit e3af30c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/Myment.js → models/Sign_up.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Sequelize = require('sequelize');
const db = require('../config/database');

const Myment = db.define('myment', {
const Myment = db.define('sign_up', {
// Object of fields
first_name: {
type: Sequelize.STRING,
Expand Down
2 changes: 1 addition & 1 deletion routes/myment.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const express = require('express');
const router = express.Router(); // Express router
const db = require('../config/database');
const Myment = require('../models/Myment');
const Myment = require('../models/Sign_up');

router.get('/', (req, res) =>
Myment.findAll()
Expand Down

0 comments on commit e3af30c

Please sign in to comment.