provider-ize profile service

This commit is contained in:
counterweight 2025-03-05 15:04:27 +01:00
parent 76e6bee411
commit ba9fa84407
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 51 additions and 39 deletions

View file

@ -4,12 +4,16 @@ const invitesService = require('../services/invitesService');
const nostrService = require('../services/nostrService');
const loginService = require('../services/loginService');
const sessionService = require('../services/sessionService');
const profileService = require('../services/profileService');
const profileServiceProvider = require('../services/profileService');
const offerService = require('../services/offerService');
const errors = require('../errors');
const attachPublicKeyMiddleware = require('../middlewares/attachPublicKeyMiddleware');
const rejectIfNotAuthorizedMiddleware = require('../middlewares/rejectIfNotAuthorizedMiddleware');
const ContactDetailsSet = require('../models/ContactDetailsSet');
const NymSet = require('../models/NymSet');
const profileService = profileServiceProvider(ContactDetailsSet, NymSet);
const router = express.Router();
router.get('/signup/nostr-challenge', async (req, res) => {