Renamed backend into auth_backend and added server_browser_backend implementation to replace Supabase.

This commit is contained in:
Alessandro Autiero
2025-08-09 02:54:48 +01:00
parent 9c6cd6dd37
commit 52abf5eb95
96 changed files with 678 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
const Express = require("express");
const express = Express.Router();
express.get("/affiliate/api/public/affiliates/slug/:slug", async (req, res) => {
const SupportedCodes = require("./../responses/SAC.json");
var ValidCode = false;
SupportedCodes.forEach(code => {
if (req.params.slug.toLowerCase() == code.toLowerCase()) {
ValidCode = true;
return res.json({
"id": code,
"slug": code,
"displayName": code,
"status": "ACTIVE",
"verified": false
});
}
})
if (ValidCode == false) {
res.status(404);
res.json({});
}
})
module.exports = express;