Compare commits
2 Commits
86fb93f665
...
0ddf35bc26
| Author | SHA1 | Date | |
|---|---|---|---|
|
0ddf35bc26
|
|||
|
bbab72187a
|
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Front from "./pages/Front.svelte";
|
||||
import Game from "./pages/Game.svelte";
|
||||
import Player from "./pages/Player.svelte";
|
||||
import { RouterView } from "@dvcol/svelte-simple-router/components";
|
||||
@@ -8,6 +9,11 @@
|
||||
} from "@dvcol/svelte-simple-router/models";
|
||||
|
||||
const routes: Readonly<Route[]> = [
|
||||
{
|
||||
name: "front",
|
||||
path: "/",
|
||||
component: Front,
|
||||
},
|
||||
{
|
||||
name: "game",
|
||||
path: "/game/:{string}:id",
|
||||
|
||||
8
web/src/types.ts
Normal file
8
web/src/types.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
interface Player {
|
||||
id: string
|
||||
}
|
||||
|
||||
interface Game {
|
||||
id: string,
|
||||
score: number
|
||||
}
|
||||
Reference in New Issue
Block a user