-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,415 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright (c) 2017, salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or | ||
* https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
|
||
/** | ||
* api/v1/helpers/nouns/generators.js | ||
*/ | ||
'use strict'; | ||
|
||
const Generator = require('../../../../db/index').Generator; | ||
|
||
const m = 'generator'; | ||
|
||
module.exports = { | ||
apiLinks: { | ||
DELETE: `Delete this ${m}`, | ||
GET: `Retrieve this ${m}`, | ||
PATCH: `Update selected attributes of this ${m}`, | ||
POST: `Create a new ${m}`, | ||
PUT: `Overwrite all attributes of this ${m}`, | ||
}, | ||
baseUrl: '/v1/generators', | ||
model: Generator, | ||
modelName: 'Generator', | ||
|
||
// define the associations that are to be deleted here | ||
belongsToManyAssoc: { | ||
users: 'writers', | ||
}, | ||
}; // exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.