migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import assert from 'node:assert';
|
||||
import BoxError from '../boxerror.js';
|
||||
import * as community from '../community.js';
|
||||
import community from '../community.js';
|
||||
import { HttpSuccess } from '@cloudron/connect-lastmile';
|
||||
import safe from 'safetydance';
|
||||
|
||||
export {
|
||||
getAppVersion
|
||||
};
|
||||
|
||||
async function getAppVersion(req, res, next) {
|
||||
assert.strictEqual(typeof req.query.url, 'string');
|
||||
@@ -17,3 +14,7 @@ async function getAppVersion(req, res, next) {
|
||||
|
||||
next(new HttpSuccess(200, result)); // { manifest, publishState, creationDate, ts }
|
||||
}
|
||||
|
||||
export default {
|
||||
getAppVersion
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user