Compare commits
2 Commits
c181a26011
...
8a0cd8721a
Author | SHA1 | Date |
---|---|---|
radex | 8a0cd8721a | |
radex | b77a893da5 |
|
@ -3,22 +3,22 @@
|
|||
{
|
||||
"name": "DYMO_LabelWriter450",
|
||||
"aliases": ["dymo", "label"],
|
||||
"ipp_url": "ipp://printmaster.local:443/printers/DYMO_LabelWriter450"
|
||||
"ipp_url": "ipp://printmaster.local:631/printers/DYMO_LabelWriter450"
|
||||
},
|
||||
{
|
||||
"name": "Zebra_GK420T",
|
||||
"aliases": ["zebra", "biglabel", "4x6"],
|
||||
"ipp_url": "ipp://printmaster.local:443/printers/Zebra_GK420T"
|
||||
"ipp_url": "ipp://printmaster.local:631/printers/Zebra_GK420T"
|
||||
},
|
||||
{
|
||||
"name": "Brother_MFC8380DN",
|
||||
"aliases": ["brother", "franciszek", "a4"],
|
||||
"ipp_url": "ipp://printmaster.local:443/printers/Brother_MFC8380DN"
|
||||
"ipp_url": "ipp://printmaster.local:631/printers/Brother_MFC8380DN"
|
||||
},
|
||||
{
|
||||
"name": "OKI_C332",
|
||||
"aliases": ["oki", "okił", "a4_color"],
|
||||
"ipp_url": "ipp://printmaster.local:443/printers/OKI_C332"
|
||||
"ipp_url": "ipp://printmaster.local:631/printers/OKI_C332"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
2
index.js
2
index.js
|
@ -103,7 +103,7 @@ app.get('/printers/:name/jobs', (req, res) => {
|
|||
|
||||
// --- Print API ---
|
||||
|
||||
app.post('/print', bodyParser.raw({ type: '*/*', limit: MAX_SIZE_MB * 1_000_000 }), (req, res) => {
|
||||
app.post('/print', bodyParser.raw({ type: () => true, limit: MAX_SIZE_MB * 1_000_000 }), (req, res) => {
|
||||
const { body, query, headers } = req
|
||||
console.log("Received print job: ", { body, query })
|
||||
|
||||
|
|
Loading…
Reference in New Issue