blob: ba7aa04a5cb697519769cb16349f26264b168032 [file] [log] [blame]
pineafanfd93e6e2022-05-06 20:30:09 +01001import Axios from 'axios';
2
3const Validate = async (req, res) => {
4 try {
5 // var out = await Axios.get(`http://192.168.102.7:10000/verify/${req.body.code}`)
6 // out = out.data
7 // let props = {
8 // user: out.user,
9 // role: out.role,
10 // role_name: out.role_name,
11 // guild: out.guild,
12 // guild_name: out.guild_name,
13 // guild_icon_url: out.guild_icon_url,
14 // guild_size: out.guild_size
15 // }
16 return res.status(200).send(props)
17 } catch (err) {
18 return res.status(400).end()
19 }
20}
21
22export default Validate;