From ecafa1ea395cd66b3b4d2b3970d31b3b42d01ce3 Mon Sep 17 00:00:00 2001 From: Mark Krasner Date: Wed, 17 Apr 2024 09:48:38 -0400 Subject: [PATCH] Second save to readme progress and changing get to post request in router --- demo/server/README.md | 4 ++++ demo/server/src/routes/multi.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/demo/server/README.md b/demo/server/README.md index 9ea1f48..ff16778 100644 --- a/demo/server/README.md +++ b/demo/server/README.md @@ -24,6 +24,10 @@ In order to use an extended type (like this server example uses), the following 2. Next, the developer would deploy the [SandboxPointAggregation](./composites/sandboxAggregation.graphql) type (which imports one of the default library interfaces already deployed above in step 1) 3. An .env file would have been generated at the root of this directory using the same format as [.env.example](./.env.example), using your endpoint in place of `CERAMIC_URL`, the corresponding StreamID for your `SandboxPointAggregation` model you just deployed in place of `AGGREGATION_ID`, and a private key +## MultiController + + + ## License Dual licensed under MIT and Apache 2 diff --git a/demo/server/src/routes/multi.ts b/demo/server/src/routes/multi.ts index 8b79248..751385b 100644 --- a/demo/server/src/routes/multi.ts +++ b/demo/server/src/routes/multi.ts @@ -24,7 +24,7 @@ router.post( }, ) -router.get( +router.post( '/getAggregations', multiplePointsController.getContextAggregation as RequestHandler, multiplePointsController.getTotalAggregation as RequestHandler,