vortex / src /modules /codechef /handlers.ts
anujjoshi3105's picture
first commit
3d23b0f
raw
history blame contribute delete
393 Bytes
import { FastifyRequest, FastifyReply } from 'fastify';
import * as service from './service';
import type { UserQuery } from './types';
export async function getUserRatingHandler(
request: FastifyRequest<{ Querystring: UserQuery }>,
reply: FastifyReply
) {
const { username } = request.query;
const data = await service.getUserRating(username);
return reply.send(data);
}