mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-30 10:15:40 +03:00
22 lines
459 B
JavaScript
22 lines
459 B
JavaScript
app streaming {
|
|
wasp: {
|
|
version: "^0.13.0"
|
|
},
|
|
title: "streaming"
|
|
}
|
|
|
|
route RootRoute { path: "/", to: MainPage }
|
|
page MainPage {
|
|
component: import Main from "@src/client/MainPage.jsx"
|
|
}
|
|
|
|
api streamingText {
|
|
httpRoute: (GET, "/api/streaming-test"),
|
|
fn: import { getText } from "@src/server/streaming.js",
|
|
}
|
|
|
|
apiNamespace defaultMiddleware {
|
|
path: "/api",
|
|
middlewareConfigFn: import { getMiddlewareConfig } from "@src/server/streaming.js",
|
|
}
|