Skip to content

Commit

Permalink
Clean up, comply with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sixem committed Mar 3, 2023
1 parent e1bdf60 commit 733c3b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ const handle = async (
/** Overridable variables passed to the renderer */
let readmeContent: null | string = null,
metadata: TMetaData = [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
];
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
];

/** Merge any passed metadata with the default metadata */
if(Array.isArray(config.server.metadata))
Expand Down Expand Up @@ -401,7 +401,7 @@ const ivfi = (workingDirectory: string = path.join(__dirname, '..')) =>
? _options.authentication.restrict
: [_options.authentication.restrict].filter((route) => _.isString(route));

debug(chalk.yellow('Applying authentication to restricted routes:'), chalk.gray(restrict.join(', ')));
debug(chalk.yellow('Applying authentication to restricted routes:'), chalk.gray(restrict.join(', ')));

/** Apply authentication to restricted routes */
for(const route of restrict)
Expand Down Expand Up @@ -489,7 +489,7 @@ const ivfi = (workingDirectory: string = path.join(__dirname, '..')) =>

customIconURI = iconUri;

app.get(iconUri, (req: Request, res: Response, next: NextFunction) =>
app.get(iconUri, (req: Request, res: Response) =>
{
res.sendFile(path.resolve(iconPath), (error) =>
{
Expand Down

0 comments on commit 733c3b9

Please sign in to comment.