Browse Source

Fix graphql.

pull/313/head
Sebastian Stehle 7 years ago
parent
commit
3899e257bd
  1. 2
      Dockerfile
  2. 2
      src/Squidex/Areas/Api/Controllers/Contents/ContentsController.cs

2
Dockerfile

@ -40,7 +40,7 @@ WORKDIR /app
# add libuv # add libuv
RUN apk add --no-cache libuv \ RUN apk add --no-cache libuv \
&& ln -s /usr/lib/libuv.so.1 /usr/lib/libuv.so && ln -s /usr/lib/libuv.so.1 /usr/lib/libuv.so
# Copy from build stage # Copy from build stage
COPY --from=builder /out/alpine . COPY --from=builder /out/alpine .

2
src/Squidex/Areas/Api/Controllers/Contents/ContentsController.cs

@ -92,7 +92,7 @@ namespace Squidex.Areas.Api.Controllers.Contents
[MustBeAppReader] [MustBeAppReader]
[HttpGet] [HttpGet]
[HttpPost] [HttpPost]
[Route("content/{app}/graphql/")] [Route("content/{app}/graphql/batch")]
[ApiCosts(2)] [ApiCosts(2)]
public async Task<IActionResult> PostGraphQLBatch(string app, [FromBody] GraphQLQuery[] batch) public async Task<IActionResult> PostGraphQLBatch(string app, [FromBody] GraphQLQuery[] batch)
{ {

Loading…
Cancel
Save