aboutsummaryrefslogtreecommitdiff
path: root/src/lib/server/services/index.ts
blob: 372e0d3deb7a78d2bde238c9e74458b5aaeff162 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

import { db } from '$lib/server/db';
import { CategoriesService } from './categories';
import { GroceriesService } from './groceries';
import { ProjectsService } from './projects';
import { ReferencesService } from './references';
import { RoutinesService } from './routines';

/**
 * Services wired once for the running server. Tests build their own instances
 * with a test database instead of importing from here.
 */
export const categoriesService = new CategoriesService(db);
export const groceriesService = new GroceriesService(db);
export const projectsService = new ProjectsService(db);
export const referencesService = new ReferencesService(db);
export const routinesService = new RoutinesService(db);