This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/pages/api/validateid.js

18 lines
391 B
JavaScript

import Utils from "../../src/utils/utils";
export default async function handler(req, res) {
const steamId = req.query.steamid;
if (!steamId) {
return res.json({
status: 404,
message: "Steam id not provided: Provide in the query.",
});
}
const isValid = await Utils.isValidSteamId(steamId);
return res.json({
status: "OK",
message: isValid ? `Invalid` : "Valid",
});
}