Fictional currency management API, for integration in games, discord bots and more!
shard.thevoid.cafe
currency
api
1// Import Dependencies
2import { Hono } from "hono";
3import { version } from "../package.json";
4
5// Import Routers
6import { v1 } from "./routes/v1";
7
8// Instantiate new Hono instance
9const app = new Hono();
10
11// Server information notice
12app.get("/", (c) =>
13 c.text(
14 `This domain is running a Shard currency server instance, on version ${version}\n\nFor more information, visit https://tangled.org/thevoid.cafe/shard`,
15 ),
16);
17
18// Router mappings
19app.route("/v1", v1);
20
21// Export Hono instance configuration
22export default {
23 fetch: app.fetch,
24 port: Bun.env.PORT || 80,
25};