mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-16 04:21:11 +00:00
refactor!: serve the static frontend trough the backend (#520)
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
18
frontend/src/routes/settings/admin/oidc-clients/+page.ts
Normal file
18
frontend/src/routes/settings/admin/oidc-clients/+page.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import OIDCService from '$lib/services/oidc-service';
|
||||
import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load: PageLoad = async () => {
|
||||
const oidcService = new OIDCService();
|
||||
|
||||
const clientsRequestOptions: SearchPaginationSortRequest = {
|
||||
sort: {
|
||||
column: 'name',
|
||||
direction: 'asc'
|
||||
}
|
||||
};
|
||||
|
||||
const clients = await oidcService.listClients(clientsRequestOptions);
|
||||
|
||||
return { clients, clientsRequestOptions };
|
||||
};
|
||||
Reference in New Issue
Block a user