Speech as a package #416
11 changed files with 24 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
const { checkChannelAvailability } = require('../../controllers/publishController.js');
|
||||
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js');
|
||||
const { checkChannelAvailability } = require('controllers/publishController.js');
|
||||
const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getChannelClaims } = require('../../controllers/serveController.js');
|
||||
const { getChannelClaims } = require('controllers/serveController.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
const NO_CHANNEL = 'NO_CHANNEL';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getChannelData } = require('../../controllers/serveController.js');
|
||||
const { getChannelData } = require('controllers/serveController.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
const NO_CHANNEL = 'NO_CHANNEL';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { claimNameIsAvailable } = require('../../controllers/publishController.js');
|
||||
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js');
|
||||
const { claimNameIsAvailable } = require('controllers/publishController.js');
|
||||
const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getClaim } = require('../../helpers/lbryApi.js');
|
||||
const { getClaim } = require('helpers/lbryApi.js');
|
||||
const { addGetResultsToFileData, createFileData } = require('../../helpers/publishHelpers.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getClaimId } = require('../../controllers/serveController.js');
|
||||
const { getClaimId } = require('controllers/serveController.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
const NO_CHANNEL = 'NO_CHANNEL';
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
const { createBasicPublishParams, createThumbnailPublishParams, parsePublishApiRequestBody, parsePublishApiRequestFiles } = require('../../helpers/publishHelpers.js');
|
||||
const { claimNameIsAvailable, publish } = require('../../controllers/publishController.js');
|
||||
const { authenticateUser } = require('../../auth/authentication.js');
|
||||
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js');
|
||||
const { createBasicPublishParams, createThumbnailPublishParams, parsePublishApiRequestBody, parsePublishApiRequestFiles } = require('helpers/publishHelpers.js');
|
||||
const { claimNameIsAvailable, publish } = require('controllers/publishController.js');
|
||||
const { authenticateUser } = require('auth/authentication.js');
|
||||
const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
const { details: { host } } = require('siteConfig.js');
|
||||
|
||||
/*
|
||||
|
||||
|
@ -10,7 +11,7 @@ const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
|||
|
||||
*/
|
||||
|
||||
const claimPublish = (db, host) => {
|
||||
const claimPublish = (db) => {
|
||||
return ({ body, files, headers, ip, originalUrl, user }, res) => {
|
||||
// define variables
|
||||
let channelName, channelId, channelPassword, description, fileName, filePath, fileType, gaStartTime, license, name, nsfw, thumbnail, thumbnailFileName, thumbnailFilePath, thumbnailFileType, title;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { resolveUri } = require('../../helpers/lbryApi.js');
|
||||
const { resolveUri } = require('helpers/lbryApi.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getClaimList } = require('../../helpers/lbryApi.js');
|
||||
const { getClaimList } = require('helpers/lbryApi.js');
|
||||
const { handleErrorResponse } = require('helpers/errorHandlers.js');
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const { sendGAServeEvent } = require('../../helpers/googleAnalytics');
|
||||
const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('../../helpers/serveHelpers.js');
|
||||
const lbryUri = require('../../helpers/lbryUri.js');
|
||||
const handleShowRender = require('../../helpers/handleShowRender.jsx');
|
||||
const { sendGAServeEvent } = require('helpers/googleAnalytics');
|
||||
const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('helpers/serveHelpers.js');
|
||||
const lbryUri = require('helpers/lbryUri.js');
|
||||
const handleShowRender = require('helpers/handleShowRender.jsx');
|
||||
const SERVE = 'SERVE';
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const { sendGAServeEvent } = require('../../helpers/googleAnalytics');
|
||||
const { determineResponseType, flipClaimNameAndIdForBackwardsCompatibility, logRequestData, getClaimIdAndServeAsset } = require('../../helpers/serveHelpers.js');
|
||||
const lbryUri = require('../../helpers/lbryUri.js');
|
||||
const handleShowRender = require('../../helpers/handleShowRender.jsx');
|
||||
const { sendGAServeEvent } = require('helpers/googleAnalytics');
|
||||
const { determineResponseType, flipClaimNameAndIdForBackwardsCompatibility, logRequestData, getClaimIdAndServeAsset } = require('helpers/serveHelpers.js');
|
||||
const lbryUri = require('helpers/lbryUri.js');
|
||||
const handleShowRender = require('helpers/handleShowRender.jsx');
|
||||
|
||||
const SERVE = 'SERVE';
|
||||
|
||||
|
|
Loading…
Reference in a new issue