This commit is contained in:
parent
dc30622ed5
commit
a1833a0955
3 changed files with 0 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
||||||
import { getRouteCategories } from '$lib/repo.js';
|
import { getRouteCategories } from '$lib/repo.js';
|
||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
|
|
||||||
/** @type {import('./$types').PageLoad} */
|
|
||||||
export async function load() {
|
export async function load() {
|
||||||
let categories = [];
|
let categories = [];
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { getRouteByCategory, getRouteCategories } from '$lib/repo.js';
|
import { getRouteByCategory, getRouteCategories } from '$lib/repo.js';
|
||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
|
|
||||||
/** @type {import('./$types').PageLoad} */
|
|
||||||
export async function load({ params }) {
|
export async function load({ params }) {
|
||||||
const categories: App.Category[] = await getRouteCategories();
|
const categories: App.Category[] = await getRouteCategories();
|
||||||
const categoryId = Number(params.slug);
|
const categoryId = Number(params.slug);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { getRoute } from '$lib/repo.js';
|
import { getRoute } from '$lib/repo.js';
|
||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
|
|
||||||
/** @type {import('./$types').PageLoad} */
|
|
||||||
export async function load({ params }) {
|
export async function load({ params }) {
|
||||||
const routeId = Number(params.slug);
|
const routeId = Number(params.slug);
|
||||||
const route = await getRoute(routeId);
|
const route = await getRoute(routeId);
|
||||||
|
|
Loading…
Reference in a new issue