mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: Integrate ProfileService into BaseAPIFeatureSet and update AutoRefreshDropdown label for clarity
This commit is contained in:
@@ -399,6 +399,9 @@ import PushNotificationLogService, {
|
||||
import SpanService, {
|
||||
SpanService as SpanServiceType,
|
||||
} from "Common/Server/Services/SpanService";
|
||||
import ProfileService, {
|
||||
ProfileService as ProfileServiceType,
|
||||
} from "Common/Server/Services/ProfileService";
|
||||
import StatusPageAnnouncementAPI from "Common/Server/API/StatusPageAnnouncementAPI";
|
||||
import StatusPageCustomFieldService, {
|
||||
Service as StatusPageCustomFieldServiceType,
|
||||
@@ -502,6 +505,7 @@ import Express, { ExpressApplication } from "Common/Server/Utils/Express";
|
||||
import Log from "Common/Models/AnalyticsModels/Log";
|
||||
import Metric from "Common/Models/AnalyticsModels/Metric";
|
||||
import Span from "Common/Models/AnalyticsModels/Span";
|
||||
import Profile from "Common/Models/AnalyticsModels/Profile";
|
||||
import ApiKey from "Common/Models/DatabaseModels/ApiKey";
|
||||
import ApiKeyPermission from "Common/Models/DatabaseModels/ApiKeyPermission";
|
||||
import CallLog from "Common/Models/DatabaseModels/CallLog";
|
||||
@@ -1286,6 +1290,14 @@ const BaseAPIFeatureSet: FeatureSet = {
|
||||
).getRouter(),
|
||||
);
|
||||
|
||||
app.use(
|
||||
`/${APP_NAME.toLocaleLowerCase()}`,
|
||||
new BaseAnalyticsAPI<Profile, ProfileServiceType>(
|
||||
Profile,
|
||||
ProfileService,
|
||||
).getRouter(),
|
||||
);
|
||||
|
||||
app.use(
|
||||
`/${APP_NAME.toLocaleLowerCase()}`,
|
||||
new BaseAPI<TelemetryUsageBilling, TelemetryUsageBillingServiceType>(
|
||||
|
||||
@@ -213,7 +213,7 @@ const AutoRefreshDropdown: FunctionComponent<AutoRefreshDropdownProps> = (
|
||||
icon={IconProp.Refresh}
|
||||
className="w-3.5 h-3.5 text-gray-500"
|
||||
/>
|
||||
<span className="text-xs text-gray-500">Auto-refresh</span>
|
||||
<span className="text-xs text-gray-500">Auto-refresh: Off</span>
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user