Skip to content

Commit

Permalink
fix: graphql endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Feb 26, 2024
1 parent 7e49487 commit e61892e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const createApp = (): Express => {
'/explorer/:driveId?',
(req, res) => {
res.setHeader('Content-Type', 'text/html')
const endpoint = API_GQL_ENDPOINT + (req.params.driveId !== undefined ? `/d/${req.params.driveId}` : '/drives')
const endpoint = req.params.driveId !== undefined ? `/d/${req.params.driveId}` : '/drives'
res.send(renderPlaygroundPage({
endpoint: endpoint,
settings: {
Expand Down

0 comments on commit e61892e

Please sign in to comment.