lint: src/node/hooks/express/padreadonly.js

This commit is contained in:
John McLear 2021-01-21 21:06:52 +00:00 committed by Richard Hansen
parent 2f9a3ec655
commit 43ce0f839b

View file

@ -1,8 +1,10 @@
'use strict';
const readOnlyManager = require('../../db/ReadOnlyManager'); const readOnlyManager = require('../../db/ReadOnlyManager');
const hasPadAccess = require('../../padaccess'); const hasPadAccess = require('../../padaccess');
const exporthtml = require('../../utils/ExportHtml'); const exporthtml = require('../../utils/ExportHtml');
exports.expressCreateServer = function (hook_name, args, cb) { exports.expressCreateServer = (hookName, args, cb) => {
// serve read only pad // serve read only pad
args.app.get('/ro/:id', async (req, res) => { args.app.get('/ro/:id', async (req, res) => {
// translate the read only pad to a padId // translate the read only pad to a padId