'use strict' ; import { Router , RequestHandler , Request , Response , NextFunction } from 'express' ; import { setupMetaverseAPI , finishMetaverseAPI } from '@Route-Tools/middleware' ; import { accountFromAuthToken } from '@Route-Tools/middleware' ; import { Logger } from '@Tools/Logging' ; const procPutCommerceHfcAccount = async ( req , resp , next ) => { if ( req . vAuthAccount ) { Logger . debug ( 'procPutCommerceHfcAccount' ) ; } else { req . vRestResp . respondFailure ( req . vAccountError ?? 'Not logged in' ) ; } ; next ( ) ; } ; export const name = '/api/v1/commerce/hfc_account' ; export const router = Router ( ) ; router . put ( '/api/v1/commerce/hfc_account' , [ setupMetaverseAPI , accountFromAuthToken , procPutCommerceHfcAccount , finishMetaverseAPI ] ) ;