feat: add a database pool and initialize table
This commit is contained in:
@@ -2,7 +2,7 @@ import { error } from '@sveltejs/kit';
|
||||
import type { PageServerLoad } from './$types';
|
||||
// import index from '$lib/index';
|
||||
import type { Content } from '$lib/article';
|
||||
import pool from '$lib/database';
|
||||
import { pool } from '$lib/server/database';
|
||||
|
||||
let data: {
|
||||
recent: Content[],
|
||||
|
||||
Reference in New Issue
Block a user