Add services and auth
This commit is contained in:
parent
9b0b5dc040
commit
5dec454afb
46 changed files with 900 additions and 31 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue