mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
BREAKING(http/unstable): move route
to ./unstable-route
(#5939)
This commit is contained in:
parent
43657d89ed
commit
c594a0ce49
@ -13,6 +13,6 @@
|
||||
"./status": "./status.ts",
|
||||
"./unstable-signed-cookie": "./unstable_signed_cookie.ts",
|
||||
"./user-agent": "./user_agent.ts",
|
||||
"./route": "./route.ts"
|
||||
"./unstable-route": "./unstable_route.ts"
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@
|
||||
* handlers based on the request path and method.
|
||||
*
|
||||
* ```ts no-eval
|
||||
* import { route, type Route } from "@std/http/route";
|
||||
* import { route, type Route } from "@std/http/unstable-route";
|
||||
* import { serveDir } from "@std/http/file-server";
|
||||
*
|
||||
* const routes: Route[] = [
|
||||
@ -99,4 +99,6 @@ export * from "./negotiation.ts";
|
||||
export * from "./server_sent_event_stream.ts";
|
||||
export * from "./user_agent.ts";
|
||||
export * from "./file_server.ts";
|
||||
export * from "./route.ts";
|
||||
// We keep this re-export as an exception for now as it's used in
|
||||
// `deno init --serve` output
|
||||
export * from "./unstable_route.ts";
|
||||
|
@ -46,7 +46,7 @@ export interface Route {
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts no-eval
|
||||
* import { route, type Route } from "@std/http/route";
|
||||
* import { route, type Route } from "@std/http/unstable-route";
|
||||
* import { serveDir } from "@std/http/file-server";
|
||||
*
|
||||
* const routes: Route[] = [
|
@ -1,6 +1,6 @@
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { type Route, route } from "./route.ts";
|
||||
import { type Route, route } from "./unstable_route.ts";
|
||||
import { assertEquals } from "../assert/equals.ts";
|
||||
|
||||
const routes: Route[] = [
|
Loading…
Reference in New Issue
Block a user