Initial project structure with sails.js
This commit is contained in:
27
api/controllers/legal/view-privacy.js
Normal file
27
api/controllers/legal/view-privacy.js
Normal file
@ -0,0 +1,27 @@
|
||||
module.exports = {
|
||||
|
||||
|
||||
friendlyName: 'View privacy',
|
||||
|
||||
|
||||
description: 'Display "Privacy policy" page.',
|
||||
|
||||
|
||||
exits: {
|
||||
|
||||
success: {
|
||||
viewTemplatePath: 'pages/legal/privacy'
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
fn: async function () {
|
||||
|
||||
// All done.
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
27
api/controllers/legal/view-terms.js
Normal file
27
api/controllers/legal/view-terms.js
Normal file
@ -0,0 +1,27 @@
|
||||
module.exports = {
|
||||
|
||||
|
||||
friendlyName: 'View terms',
|
||||
|
||||
|
||||
description: 'Display "Legal terms" page.',
|
||||
|
||||
|
||||
exits: {
|
||||
|
||||
success: {
|
||||
viewTemplatePath: 'pages/legal/terms'
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
fn: async function () {
|
||||
|
||||
// All done.
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
Reference in New Issue
Block a user