import _ from 'lodash' import { type FastifyPluginCallbackTypebox } from '@fastify/type-provider-typebox' import knex from '../../lib/knex.ts' const journalRoutes: FastifyPluginCallbackTypebox = (fastify, _, done) => { fastify.route({ url: '/', method: 'GET', handler() { return knex('journal').select('*').orderBy('identifier') }, }) done() } export default journalRoutes