mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix paths.
This commit is contained in:
@@ -16,6 +16,7 @@ import Express, {
|
||||
|
||||
// Connect common api's.
|
||||
import CommonAPI from '../API/Index';
|
||||
import NotFoundException from 'Common/Types/Exception/NotFoundException';
|
||||
|
||||
import OneUptimeDate from 'Common/Types/Date';
|
||||
import LocalCache from '../Infrastructure/LocalCache';
|
||||
@@ -23,6 +24,7 @@ import Exception from 'Common/Types/Exception/Exception';
|
||||
import ObjectID from 'Common/Types/ObjectID';
|
||||
import StatusCode from 'Common/Types/API/StatusCode';
|
||||
import Typeof from 'Common/Types/Typeof';
|
||||
import Response from './Response';
|
||||
// import OpenTelemetrySDK from "./OpenTelemetry";
|
||||
|
||||
const app: ExpressApplication = Express.getExpressApp();
|
||||
@@ -132,20 +134,20 @@ const init: Function = async (appName: string, port?: Port): Promise<ExpressAppl
|
||||
}
|
||||
);
|
||||
|
||||
app.post('*', (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.status(404).json({ error: '404 - Not Found.' });
|
||||
app.post('*', (req: ExpressRequest, res: ExpressResponse) => {
|
||||
return Response.sendErrorResponse(req, res, new NotFoundException("Not found"))
|
||||
});
|
||||
|
||||
app.put('*', (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.status(404).json({ error: '404 - Not Found.' });
|
||||
app.put('*', (req: ExpressRequest, res: ExpressResponse) => {
|
||||
return Response.sendErrorResponse(req, res, new NotFoundException("Not found"))
|
||||
});
|
||||
|
||||
app.delete('*', (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.status(404).json({ error: '404 - Not Found.' });
|
||||
app.delete('*', (req: ExpressRequest, res: ExpressResponse) => {
|
||||
return Response.sendErrorResponse(req, res, new NotFoundException("Not found"))
|
||||
});
|
||||
|
||||
app.get('*', (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.status(404).json({ error: '404 - Not Found.' });
|
||||
app.get('*', (req: ExpressRequest, res: ExpressResponse) => {
|
||||
return Response.sendErrorResponse(req, res, new NotFoundException("Not found"))
|
||||
});
|
||||
|
||||
// await OpenTelemetrySDK.start();
|
||||
|
||||
@@ -23,7 +23,7 @@ const DashboardUserProfile: FunctionComponent<ComponentProps> = (
|
||||
<UserProfile
|
||||
userFullName={UserUtil.getName()}
|
||||
userProfilePicture={Route.fromString(
|
||||
`/dashboard/public/${OneUptimeLogo}`
|
||||
`${OneUptimeLogo}`
|
||||
)}
|
||||
>
|
||||
<UserProfileMenu>
|
||||
|
||||
20540
DashboardAPI/package-lock.json
generated
20540
DashboardAPI/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -132,7 +132,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://home;
|
||||
proxy_pass http://home/;
|
||||
}
|
||||
|
||||
location /accounts {
|
||||
@@ -145,7 +145,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://accounts;
|
||||
proxy_pass http://accounts/;
|
||||
}
|
||||
|
||||
location /dashboard {
|
||||
@@ -158,7 +158,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://dashboard;
|
||||
proxy_pass http://dashboard/;
|
||||
}
|
||||
|
||||
location /status-page {
|
||||
@@ -171,7 +171,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://status-page;
|
||||
proxy_pass http://status-page/;
|
||||
}
|
||||
|
||||
location /identity {
|
||||
@@ -184,7 +184,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://identity;
|
||||
proxy_pass http://identity/;
|
||||
}
|
||||
|
||||
location /file {
|
||||
@@ -197,7 +197,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://file;
|
||||
proxy_pass http://file/;
|
||||
|
||||
client_max_body_size 50M;
|
||||
}
|
||||
@@ -212,7 +212,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://dashboard-api;
|
||||
proxy_pass http://dashboard-api/;
|
||||
|
||||
client_max_body_size 50M;
|
||||
}
|
||||
@@ -227,6 +227,6 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://workers;
|
||||
proxy_pass http://workers/;
|
||||
}
|
||||
}
|
||||
@@ -132,7 +132,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://home;
|
||||
proxy_pass http://home/;
|
||||
}
|
||||
|
||||
location /accounts {
|
||||
@@ -145,7 +145,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://accounts;
|
||||
proxy_pass http://accounts/;
|
||||
}
|
||||
|
||||
location /dashboard {
|
||||
@@ -158,7 +158,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://dashboard;
|
||||
proxy_pass http://dashboard/;
|
||||
}
|
||||
|
||||
location /status-page {
|
||||
@@ -171,7 +171,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://status-page;
|
||||
proxy_pass http://status-page/;
|
||||
}
|
||||
|
||||
location /identity {
|
||||
@@ -184,7 +184,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://identity;
|
||||
proxy_pass http://identity/;
|
||||
}
|
||||
|
||||
location /file {
|
||||
@@ -197,7 +197,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://file;
|
||||
proxy_pass http://file/;
|
||||
|
||||
client_max_body_size 50M;
|
||||
}
|
||||
@@ -212,7 +212,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://dashboard-api;
|
||||
proxy_pass http://dashboard-api/;
|
||||
|
||||
client_max_body_size 50M;
|
||||
}
|
||||
@@ -227,6 +227,6 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://workers;
|
||||
proxy_pass http://workers/;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user