import axios from 'axios' import { useRouter } from "next/router" export const config = { api: { externalResolver: true, }, } export default async function handler(req, res) { const message = [ "Scrying", "Divining", "Crystal gazing", "Searching", "Loading", "Casting a spell", "Calling for wisdom", "Using the palantir", "Working magic...", "Scrying", "Divining", "Crystal gazing", "Searching", "Loading", "Casting a spell", "Calling for wisdom", "Using the palantir", "Working magic...", "Scrying", "Divining", "Crystal gazing", "Searching", "Loading", "Casting a spell", "Calling for wisdom", "Using the palantir", "Working magic...", "Patience apprentice", "Invoking a beholder", "TheOtherGuy's on it", "There is no spoon", "Decentraland? Nah", "SandBox? I'll pass", "Roblox? No magic", "Land-rule rules", "Corwin lives!", "It's doomed...", "Lyonesse forever", "Oh the stricture!", "Where's my torc?", "Entropy fj49gfg5", "Just ask Morgon", "Clocks strike 13", "BCG suxs, man", "Othofizz refreshes", "Lot 49?", "Teen Age Riot" ] try { res.statusCode = 200 res.json(message) res.end() } catch (err) { // console.log(err) res.status(404) res.json({ error: "Something went wrong" }) res.end() } }