diff --git a/.DS_Store b/.DS_Store index 1e4b933..264ab17 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/index.js b/index.js index 8f01b08..47d4fac 100755 --- a/index.js +++ b/index.js @@ -5,7 +5,6 @@ import { createBareServer } from '@tomphttp/bare-server-node' import path from 'node:path' import cors from 'cors' import config from './config.js' - const __dirname = process.cwd() const server = http.createServer() const app = express(server) @@ -33,7 +32,7 @@ const routes = [ { path: '/e', file: 'now.html' }, ] -app.get('/w/*', cors({ origin: false }), async (req, res, next) => { +app.get('/y/*', cors({ origin: false }), async (req, res, next) => { try { const reqTarget = `https://raw.githubusercontent.com/ypxa/y/main/${req.params[0]}` const asset = await fetch(reqTarget) diff --git a/static/.DS_Store b/static/.DS_Store index 9aa0dd0..5c09643 100644 Binary files a/static/.DS_Store and b/static/.DS_Store differ diff --git a/static/assets/m/bundle.js b/static/m/bundle.js similarity index 100% rename from static/assets/m/bundle.js rename to static/m/bundle.js diff --git a/static/assets/m/config.js b/static/m/config.js similarity index 100% rename from static/assets/m/config.js rename to static/m/config.js diff --git a/static/assets/m/handler.js b/static/m/handler.js similarity index 100% rename from static/assets/m/handler.js rename to static/m/handler.js diff --git a/static/assets/m/sw.js b/static/m/sw.js similarity index 100% rename from static/assets/m/sw.js rename to static/m/sw.js