[READ-ONLY] Mirror of https://github.com/aaronateataco/TomodachiMods. tomodachimods.vercel.app
0

Configure Feed

Select the types of activity you want to include in your feed.

fixes

aaronateataco (Jul 15, 2026, 12:52 PM +0100) 373c0f73 5f501b7d

+8 -21
+2 -4
api/mii/[id].js
··· 1 - import fetch from 'node-fetch'; 2 - 3 1 const API_BASE = 'https://api.tomodachishare.com'; 4 2 5 3 const FETCH_HEADERS = { ··· 53 51 })); 54 52 } 55 53 56 - export default async function handler(req, res) { 54 + module.exports = async function handler(req, res) { 57 55 if (req.method !== 'GET') { 58 56 return res.status(405).json({ error: 'Method not allowed' }); 59 57 } ··· 111 109 console.error(`GET /api/mii/${id} error:`, err.message); 112 110 return res.status(500).json({ error: err.message }); 113 111 } 114 - } 112 + };
+2 -4
api/mii/[id]/download.js
··· 1 - import fetch from 'node-fetch'; 2 - 3 1 const API_BASE = 'https://api.tomodachishare.com'; 4 2 5 3 const FETCH_HEADERS = { ··· 10 8 'Referer': 'https://tomodachishare.com/', 11 9 }; 12 10 13 - export default async function handler(req, res) { 11 + module.exports = async function handler(req, res) { 14 12 if (req.method !== 'GET') { 15 13 return res.status(405).send('Method not allowed'); 16 14 } ··· 39 37 console.error(`Download proxy error for mii ${id}:`, err.message); 40 38 return res.status(500).send('Download proxy error'); 41 39 } 42 - } 40 + };
+2 -5
api/mii/[id]/image.js
··· 1 - import fetch from 'node-fetch'; 2 - 3 1 const API_BASE = 'https://api.tomodachishare.com'; 4 2 5 3 const FETCH_HEADERS = { ··· 10 8 'Referer': 'https://tomodachishare.com/', 11 9 }; 12 10 13 - 14 - export default async function handler(req, res) { 11 + module.exports = async function handler(req, res) { 15 12 if (req.method !== 'GET') { 16 13 return res.status(405).send('Method not allowed'); 17 14 } ··· 37 34 console.error(`Image proxy error for mii ${id}:`, err.message); 38 35 return res.status(500).send('Image proxy error'); 39 36 } 40 - } 37 + };
+2 -4
api/miis.js
··· 1 - import fetch from 'node-fetch'; 2 - 3 1 const API_BASE = 'https://api.tomodachishare.com'; 4 2 5 3 const FETCH_HEADERS = { ··· 26 24 } 27 25 } 28 26 29 - export default async function handler(req, res) { 27 + module.exports = async function handler(req, res) { 30 28 if (req.method !== 'GET') { 31 29 return res.status(405).json({ error: 'Method not allowed' }); 32 30 } ··· 85 83 console.error('GET /api/miis error:', err.message); 86 84 return res.status(500).json({ error: err.message }); 87 85 } 88 - } 86 + };
-4
package.json
··· 2 2 "name": "tomodachi-share-clone", 3 3 "version": "1.0.0", 4 4 "description": "A clone of tomodachishare.com with clothing/outfit support", 5 - "type": "module", 6 5 "scripts": { 7 6 "dev": "vercel dev" 8 - }, 9 - "dependencies": { 10 - "node-fetch": "^3.3.2" 11 7 } 12 8 }