aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-11-19 04:40:02 -0800
committerFuwn <[email protected]>2023-11-19 04:40:02 -0800
commitb1454872a74a955ff2dca7014b4549f153686bea (patch)
tree66a2e1fa53d0615421aa084dd5eb12641a071d3a /src/routes/api.svelte
parentfix(npm): remove lockfile (diff)
downloadfrontend-next-b1454872a74a955ff2dca7014b4549f153686bea.tar.xz
frontend-next-b1454872a74a955ff2dca7014b4549f153686bea.zip
feat(svelte): complete sveltekit upgrade
Diffstat (limited to 'src/routes/api.svelte')
-rw-r--r--src/routes/api.svelte58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/routes/api.svelte b/src/routes/api.svelte
deleted file mode 100644
index cf4e571..0000000
--- a/src/routes/api.svelte
+++ /dev/null
@@ -1,58 +0,0 @@
-<!-- This file is part of api-worker <https://github.com/senpy-club/api-worker>.
-Copyright (C) 2022-2022 Fuwn <[email protected]>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, version 3.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Copyright (C) 2022-2022 Fuwn <[email protected]>
-SPDX-License-Identifier: GPL-3.0-only -->
-<script>
- import { onMount } from "svelte";
- import rst2html from "rst2html";
- import { baseURL } from "$lib/api";
-
- let rst;
- let complete = false;
-
- onMount(async () => {
- rst = await (await fetch(baseURL)).text();
- complete = true;
- });
-</script>
-
-<svelte:head>
- <title>API | The Senpy Club</title>
-</svelte:head>
-
-<section>
- <p>
- The Senpy Club API can be accessed through <a
- href="https://api.senpy.club"
- target="_blank"
- >
- REST
- </a>
- and
- <a href="https://github.com/senpy-club/graphql-api" target="_blank"
- >GraphQL</a
- >
- (<a href="https://graphql.senpy.club/playground" target="_blank">
- Playground</a
- >)
- </p>
-
- {#if !complete}
- <p>Fetching API README ...</p>
- {:else}
- {@html rst2html(rst)}
- {/if}
-</section>