feat: params

This commit is contained in:
EETagent 2022-11-17 22:53:55 +01:00
parent d6d4d9985e
commit 886f4a95dd
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,6 @@
import type { ParamMatcher } from '@sveltejs/kit';
export const match: ParamMatcher = (param) => {
//TODO: Application regex
return /^\d+$/.test(param);
};

View file

@ -0,0 +1,13 @@
<script lang="ts">
import FullLayout from '$lib/components/layout/FullLayout.svelte';
</script>
<FullLayout />
<style>
.form {
@apply flex flex-col;
@apply mx-auto w-[90%] h-full;
@apply items-center justify-center;
}
</style>