Skip to main content
Go to Latest
method Aleph.prototype.getAPIRoute
import { Aleph } from "https://deno.land/x/aleph_plugin_mdx@v1.0.0-beta.1/dev_deps.ts";

get api route by the given location.

Parameters

location: { pathname: string; search?: string; }

Returns

Promise<[RouterURL, APIHandler] | null>