lint: src/node/hooks/express/padreadonly.js
parent
2f9a3ec655
commit
43ce0f839b
|
@ -1,8 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
const readOnlyManager = require('../../db/ReadOnlyManager');
|
||||
const hasPadAccess = require('../../padaccess');
|
||||
const exporthtml = require('../../utils/ExportHtml');
|
||||
|
||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||
exports.expressCreateServer = (hookName, args, cb) => {
|
||||
// serve read only pad
|
||||
args.app.get('/ro/:id', async (req, res) => {
|
||||
// translate the read only pad to a padId
|
||||
|
|
Loading…
Reference in New Issue