mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-29 03:53:14 +03:00
21 lines
446 B
JavaScript
21 lines
446 B
JavaScript
|
app streaming {
|
||
|
wasp: {
|
||
|
version: "^0.11.5"
|
||
|
},
|
||
|
title: "streaming"
|
||
|
}
|
||
|
|
||
|
route RootRoute { path: "/", to: MainPage }
|
||
|
page MainPage {
|
||
|
component: import Main from "@client/MainPage.jsx"
|
||
|
}
|
||
|
|
||
|
api streamingText {
|
||
|
httpRoute: (GET, "/api/streaming-test"),
|
||
|
fn: import { getText } from "@server/streaming.js",
|
||
|
}
|
||
|
|
||
|
apiNamespace defaultMiddleware {
|
||
|
path: "/api",
|
||
|
middlewareConfigFn: import { getMiddlewareConfig } from "@server/streaming.js",
|
||
|
}
|