First working version of EVE-PI

This commit is contained in:
Calli
2023-06-23 12:07:45 +03:00
commit 5429ff7969
46 changed files with 28631 additions and 0 deletions

13
src/pages/api/env.ts Normal file
View File

@@ -0,0 +1,13 @@
import { NextApiRequest, NextApiResponse } from "next";
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
if (req.method === "GET") {
const EVE_SSO_CALLBACK_URL = process.env.EVE_SSO_CALLBACK_URL;
const EVE_SSO_CLIENT_ID = process.env.EVE_SSO_CLIENT_ID;
res.json({ EVE_SSO_CLIENT_ID, EVE_SSO_CALLBACK_URL });
} else {
res.status(404).end();
}
};
export default handler;