Page MenuHomeSealhub

responses.js
No OneTemporary

responses.js

"use strict";
const SealiousResponses = {};
SealiousResponses.NewSession = function(session_id) {
this.status = "success";
this.message = "Logged in!";
Object.defineProperty(this, "metadata", {
value: { session_id: session_id },
});
this.data = {};
};
SealiousResponses.ResourceCreated = function(resource_representation) {
for (const i in resource_representation) {
this[i] = resource_representation[i];
}
};
SealiousResponses.CollectionResponse = require("./collection-response.js");
SealiousResponses.SingleItemResponse = require("./single-item-response.js");
module.exports = SealiousResponses;

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 14:06 (41 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557342
Default Alt Text
responses.js (615 B)

Event Timeline