mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Refactor API surface.
This commit is contained in:
parent
0f0c399dd5
commit
43419c27cf
@ -1,24 +1,29 @@
|
|||||||
/**
|
/**
|
||||||
External API surface for HackMyResume.
|
External API surface for HackMyResume.
|
||||||
@license MIT. Copyright (c) 2015 James M. Devlin / FluentDesk.
|
@license MIT. See LICENSE.md for details.
|
||||||
@module hackmyapi.js
|
@module hackmyapi.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var v = {
|
|
||||||
build: require('./verbs/build'),
|
|
||||||
analyze: require('./verbs/analyze'),
|
|
||||||
validate: require('./verbs/validate'),
|
|
||||||
convert: require('./verbs/convert'),
|
|
||||||
new: require('./verbs/create')
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
The formal HackMyResume API.
|
||||||
|
*/
|
||||||
var HackMyAPI = module.exports = {
|
var HackMyAPI = module.exports = {
|
||||||
verbs: v,
|
verbs: {
|
||||||
|
build: require('./verbs/build'),
|
||||||
|
analyze: require('./verbs/analyze'),
|
||||||
|
validate: require('./verbs/validate'),
|
||||||
|
convert: require('./verbs/convert'),
|
||||||
|
new: require('./verbs/create')
|
||||||
|
},
|
||||||
alias: {
|
alias: {
|
||||||
generate: v.build,
|
generate: require('./verbs/build'),
|
||||||
create: v.new
|
create: require('./verbs/create')
|
||||||
},
|
},
|
||||||
options: require('./core/default-options'),
|
options: require('./core/default-options'),
|
||||||
formats: require('./core/default-formats'),
|
formats: require('./core/default-formats'),
|
||||||
@ -40,4 +45,6 @@ External API surface for HackMyResume.
|
|||||||
HtmlPngGenerator: require('./gen/html-png-generator')
|
HtmlPngGenerator: require('./gen/html-png-generator')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
Loading…
Reference in New Issue
Block a user