mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
lint: src/node/hooks/express/padreadonly.js
This commit is contained in:
parent
2f9a3ec655
commit
43ce0f839b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue