Skip to content

Commit

Permalink
add tank image and add a header for public assets
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Sep 11, 2023
1 parent 985d409 commit 9efbe73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webservice/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ app.use(express.json());
app.use(express.urlencoded({extended: false}));
app.use(cookieParser());
app.use(cors());
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'public'), {
setHeaders: (res, path, stat) => {
res.setHeader('Supports-Loading-Mode', 'fenced-frame')
}
}));

// bot account setup: get siteinfo once and refresh tokens every 10 minutes
// XXX: more systematic way for token handling?
Expand Down
Binary file added webservice/public/images/tank-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9efbe73

Please sign in to comment.