Remove un-needed 'resources' functions.
This commit is contained in:
parent
76c67425b1
commit
cb92ffe3df
|
@ -13,12 +13,6 @@ function makeAPI(root) {
|
||||||
const protobufContentType = (messageType) =>
|
const protobufContentType = (messageType) =>
|
||||||
({ 'Content-Type': 'application/x-protobuf; messageType="' + messageType + '"' });
|
({ 'Content-Type': 'application/x-protobuf; messageType="' + messageType + '"' });
|
||||||
|
|
||||||
const attributesResource = (username, characterID) =>
|
|
||||||
'/api/cofd/' + username + '/' + characterID + '/attributes';
|
|
||||||
|
|
||||||
const skillResource = (username, characterID, skillName) =>
|
|
||||||
'/api/cofd/' + username + '/' + characterID + '/skills';
|
|
||||||
|
|
||||||
function verifyAndCreate(protobufType, payload) {
|
function verifyAndCreate(protobufType, payload) {
|
||||||
let err = protobufType.verify(payload);
|
let err = protobufType.verify(payload);
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|
Loading…
Reference in New Issue