forked from UKSOURCE/cms.hailearning.edu.vn
change :// to ??
This commit is contained in:
@@ -141,7 +141,7 @@ exports.apiVerify = async (req, res) => {
|
||||
if (!qual) return res.status(404).json({ error: 'Degree not found' });
|
||||
if (qual.status === 'revoked') return res.status(404).json({ error: 'Degree has been revoked' });
|
||||
|
||||
const baseUrl = `${req.protocol}://${req.get('host')}`;
|
||||
const baseUrl = process.env.BACKEND_URL ?? `${req.protocol}://${req.get('host')}`;
|
||||
const buildUrl = (f) => f ? [generateSignedUrl(baseUrl, path.basename(f))] : undefined;
|
||||
|
||||
const response = {
|
||||
|
||||
Reference in New Issue
Block a user