identity/identity-api/src/app.ts

26 lines
1,007 B
TypeScript
Raw Normal View History

2024-06-29 17:12:12 +00:00
// Identity. Store your memories and mental belongings
// Copyright (C) 2024 Sofía Aritz
2024-06-29 18:11:53 +00:00
//
2024-06-29 17:12:12 +00:00
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
2024-06-29 18:11:53 +00:00
//
2024-06-29 17:12:12 +00:00
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
2024-06-29 18:11:53 +00:00
//
2024-06-29 17:12:12 +00:00
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2024-06-30 16:04:54 +00:00
import { TypeBoxTypeProvider } from "@fastify/type-provider-typebox";
2024-06-25 22:29:26 +00:00
import Fastify from "fastify";
2024-06-30 16:04:54 +00:00
let app = Fastify({
2024-06-25 22:29:26 +00:00
logger: true,
2024-06-30 16:13:29 +00:00
}).withTypeProvider<TypeBoxTypeProvider>();
2024-06-30 16:04:54 +00:00
export type AppInterface = typeof app;
export default app;