Add services and auth

This commit is contained in:
Aslan 2025-12-23 17:45:51 -05:00
parent 9b0b5dc040
commit 5dec454afb
46 changed files with 900 additions and 31 deletions

View file

@ -1,10 +1,11 @@
import { type FastifyReply, type FastifyRequest } from "fastify";
import { testdb } from "../../store/store.js";
const test = async (request: FastifyRequest, reply: FastifyReply) => {
testdb();
return [{ name: "Alice" }];
const getPing = async (_request: FastifyRequest, _reply: FastifyReply) => {
return [{ message: "pong" }];
};
export { test };
const getTest = async (_request: FastifyRequest, _reply: FastifyReply) => {
return [{ message: "ok" }];
};
export { getPing, getTest };