You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
667 B
22 lines
667 B
import { Router } from "https://deno.land/x/oak/mod.ts";
|
|
|
|
import Pageviews from "../pageviews/index.ts";
|
|
import { GetBlocks } from "./blocks.ts";
|
|
import { LnurlPayRequest, LnurlPayRequestCallback } from "./donate.ts";
|
|
import { GetBlockchainInfo, GetBlockCount, GetBlockHash } from "./misc.ts";
|
|
|
|
const router = new Router();
|
|
|
|
router.get("/blocks", Pageviews, GetBlocks);
|
|
|
|
router.get("/invoice", LnurlPayRequest);
|
|
|
|
router.get("/invoice/callback", LnurlPayRequestCallback);
|
|
|
|
router.get("/getblockchaininfo", GetBlockchainInfo);
|
|
|
|
router.get<{ height: string }>("/getblockhash/:height", GetBlockHash);
|
|
|
|
router.get("/getblockcount", GetBlockCount);
|
|
|
|
export default router;
|
|
|