You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
robotop.krasnikov.pro/pages/api/loadingLegisteredCommands.ts

10 lines
490 B

import Select from "../../server/db/select";
const sql = "SELECT team_name, training_institution_team, name_team_coach, name_first_participant, name_second_participant, name_third_party, concat(first_partial_class,',',second_class,',',third_part_class) as classTeam FROM members WHERE 1";
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export default function handler(req, res) {
Select(sql, function(data){
res.status(200).json(data);
})
}