Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = {
- attributes: {
- name : {
- type: 'string'
- },
- pass : {
- type: 'string'
- }
- }
- };
- module.exports = {
- users: function (req, res) {
- User.find().exec(function(err, listusers) {
- sails.log(listusers);
- if (err) {sails.log("no result"); }
- return res.view('test', {
- user: listusers
- });
- });
- }
- };
- someMysqlServer: {
- adapter: 'sails-mysql',
- host: 'localhost',
- user: 'test', //optional
- password: 'test', //optional
- database: 'test' //optional
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement