Open skwasan opened 2 years ago
How to access the nuxt supabase module in server-middleware/rest.js?
//rest.js
app.all('/getJSON', async (req, res) => { console.log('req', req.apikey) console.log(supabase) const { data, error } = await supabase .from('userdetails') .select('config') .eq('apikey', req.apikey) res.json({ data: data }) })
How to access the nuxt supabase module in server-middleware/rest.js?
//rest.js
app.all('/getJSON', async (req, res) => { console.log('req', req.apikey) console.log(supabase) const { data, error } = await supabase .from('userdetails') .select('config') .eq('apikey', req.apikey) res.json({ data: data }) })