Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Dec 2, 2021
1 parent 1f00759 commit f9b79db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import express from 'express';
import * as express from 'express';
import * as config from './config';


const ForgeAuthClient = require('forge-apis').AuthClientThreeLegged;
/**
* Kevin Pan | pan261@purdue.edu | Last Modified: 11/22/2021
*
Expand Down Expand Up @@ -43,7 +42,7 @@ const createServer = () => {
}

// Endpoint to begin authentication process
app.get('/auth', function (req, res) {
app.get('/auth', function (req: any, res: any) {
console.log(
'\x1b[96mserver.js::createServer:',
'\x1b[0m/auth endpoint called'
Expand Down Expand Up @@ -84,7 +83,7 @@ const createServer = () => {
});

// Endpoint for internal use, to get credentials from our auth server
app.get('/credentials', function (req, res) {
app.get('/credentials', function (req: any, res: any) {
if (credentials) {
console.log(
'\x1b[96mserver.js::createServer:',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
"esModuleInterop": false, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */

Expand Down

0 comments on commit f9b79db

Please sign in to comment.