14 lines
324 B
TypeScript
14 lines
324 B
TypeScript
import { resolveLocationFromRoute } from '$lib/utils/location';
|
|
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load: PageLoad = async (event) => {
|
|
const location = await resolveLocationFromRoute({
|
|
urlLocation: event.params.location,
|
|
routePrefix: '/weather/historical/',
|
|
event
|
|
});
|
|
|
|
return { location };
|
|
};
|