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 d606d0d commit 609f7e8
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 609f7e8

Please sign in to comment.