u
This commit is contained in:
@@ -48,5 +48,23 @@ export const labeltemplate = {
|
||||
},
|
||||
// #endregion
|
||||
|
||||
/**
|
||||
* POST /api/labeltemplate/testprint (or /api/labeltemplate/:id/testprint)
|
||||
* @param {number|object} idOrBody
|
||||
* @param {object} [maybeBody]
|
||||
* → 200 { success: true, printerjob?: PrinterJob }
|
||||
*/
|
||||
// #region POST /api/labeltemplate/testprint — testprint
|
||||
testprint(idOrBody, maybeBody) {
|
||||
if (typeof idOrBody === 'object' && idOrBody !== null) {
|
||||
return http('/api/labeltemplate/testprint', { method: 'POST', body: idOrBody });
|
||||
}
|
||||
return http(`/api/labeltemplate/${encodeURIComponent(idOrBody)}/testprint`, {
|
||||
method: 'POST',
|
||||
body: maybeBody || {},
|
||||
});
|
||||
},
|
||||
// #endregion
|
||||
|
||||
// thumb is returned inline as a base64 string in list/get responses
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user