Skip to content

Commit

Permalink
Fix API after accidentally breaking it
Browse files Browse the repository at this point in the history
Former-commit-id: 0820507
  • Loading branch information
JDRomano2 committed Jul 1, 2021
1 parent c0fe552 commit 1e33f0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/packages/api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var swaggerOpts = {

// Make swagger/openapi documentation
var swaggerSpec = swaggerJSDoc(swaggerOpts);
app.use('/', swaggerUi.serve, swaggerUi.setup(swaggerSpec));
app.use('/help', swaggerUi.serve, swaggerUi.setup(swaggerSpec));
app.set("port", nconf.get("PORT"));

app.use(require('./neo4j'));
Expand Down Expand Up @@ -84,9 +84,9 @@ app.use(neo4jSessionCleanup);
* schema:
* type: string
*/
// app.get('/', (req, res) => {
// res.send('Welcome to ComptoxAI\'s web API! Please read the documentation at http://comptox.ai/api/help/ for available operations.')
// })
app.get('/', (req, res) => {
res.send('Welcome to ComptoxAI\'s web API! Please read the documentation at http://comptox.ai/api/help/ for available operations.')
})

app.get('/config', (req, res) => {
res.send(dataConfigJson);
Expand Down

0 comments on commit 1e33f0f

Please sign in to comment.