mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-07 15:48:46 +01:00
Merge pull request #1539 from valadaptive/remove-notes-endpoint
Remove /notes endpoint
This commit is contained in:
commit
0f42bd4a95
@ -293,9 +293,6 @@ app.use(multer({ dest: UPLOADS_PATH, limits: { fieldSize: 10 * 1024 * 1024 } }).
|
|||||||
app.get('/', function (request, response) {
|
app.get('/', function (request, response) {
|
||||||
response.sendFile(process.cwd() + '/public/index.html');
|
response.sendFile(process.cwd() + '/public/index.html');
|
||||||
});
|
});
|
||||||
app.get('/notes/*', function (request, response) {
|
|
||||||
response.sendFile(process.cwd() + '/public' + request.url + '.html');
|
|
||||||
});
|
|
||||||
app.get('/deviceinfo', function (request, response) {
|
app.get('/deviceinfo', function (request, response) {
|
||||||
const userAgent = request.header('user-agent');
|
const userAgent = request.header('user-agent');
|
||||||
const deviceDetector = new DeviceDetector();
|
const deviceDetector = new DeviceDetector();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user