All files / app/service resources.ts

41.17% Statements 7/17
100% Branches 0/0
0% Functions 0/5
41.17% Lines 7/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2968x   68x   68x         68x         68x         68x         68x        
import { Empty } from "google-protobuf/google/protobuf/empty_pb";
 
import client from "./client";
 
export async function getTermsOfService() {
  const res = await client.resources.getTermsOfService(new Empty());
  return res.toObject();
}
 
export async function getCommunityGuidelines() {
  const res = await client.resources.getCommunityGuidelines(new Empty());
  return res.toObject();
}
 
export async function getRegions() {
  const regions = await client.resources.getRegions(new Empty());
  return regions.toObject();
}
 
export async function getLanguages() {
  const languages = await client.resources.getLanguages(new Empty());
  return languages.toObject();
}
 
export async function getBadges() {
  const badges = await client.resources.getBadges(new Empty());
  return badges.toObject();
}