mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-08 23:15:34 +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
|
@ -1,3 +1,3 @@
|
|||
export const SERVICE_URL = 'pb.nekoid.cc';
|
||||
export const PASTE_WEB_URL = 'https://raw.githubusercontent.com/rikkaneko/paste/main/static/v2';
|
||||
export const PASTE_WEB_URL = 'https://raw.githubusercontent.com/rikkaneko/paste/main/frontend';
|
||||
export const UUID_LENGTH = 4;
|
||||
|
|
|
@ -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