mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-11 08:25:33 +01:00
Update path to frontend static files
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
3de4fa14ed
commit
2e9a56376d
7 changed files with 8 additions and 187 deletions
|
@ -56,7 +56,7 @@ router.get('/favicon.ico', () => {
|
|||
});
|
||||
|
||||
// Web script and style file
|
||||
router.get('/(css|js)/*', (request) => {
|
||||
router.get('/static/*', (request) => {
|
||||
const { url } = request;
|
||||
const { pathname } = new URL(url);
|
||||
const path = pathname.replace(/\/+$/, '') || '/';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue