18 lines
480 B
TypeScript
18 lines
480 B
TypeScript
/**
|
|
* Standalone server for the Wallet module.
|
|
* Serves rwallet.online independently.
|
|
*/
|
|
|
|
import { Hono } from "hono";
|
|
import { serveStatic } from "hono/bun";
|
|
import { walletModule } from "./mod";
|
|
|
|
const app = new Hono();
|
|
|
|
app.use("/modules/wallet/*", serveStatic({ root: "./dist" }));
|
|
app.use("/*", serveStatic({ root: "./dist" }));
|
|
app.route("/", walletModule.routes);
|
|
|
|
console.log(`[rWallet Standalone] Listening on :3000`);
|
|
export default { port: 3000, fetch: app.fetch };
|