File size: 393 Bytes
3d23b0f |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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);
}
|