#304: custom fonts in the pickers, an admin screen, and the licence page #313
@ -23,6 +23,7 @@ import type { Response } from 'express';
|
|||||||
|
|
||||||
import { SiteAdminGuard } from '../admin/site-admin.guard';
|
import { SiteAdminGuard } from '../admin/site-admin.guard';
|
||||||
import { AuthedRequest, Public } from '../auth/auth.guard';
|
import { AuthedRequest, Public } from '../auth/auth.guard';
|
||||||
|
import { AuthenticatedOnly } from '../permissions/permission.decorators';
|
||||||
import { CustomFontStorageService } from './custom-font-storage.service';
|
import { CustomFontStorageService } from './custom-font-storage.service';
|
||||||
import { CustomFontsService, WeightUpload } from './custom-fonts.service';
|
import { CustomFontsService, WeightUpload } from './custom-fonts.service';
|
||||||
|
|
||||||
@ -125,6 +126,10 @@ export class CustomFontsFileController {
|
|||||||
private readonly fonts: CustomFontsService,
|
private readonly fonts: CustomFontsService,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
// Explicit access declaration, as every route needs (issue #52's fence
|
||||||
|
// `route-permissions.e2e.db.test.ts`): a session, no further permission —
|
||||||
|
// the list says which families exist, which is what the pickers offer.
|
||||||
|
@AuthenticatedOnly()
|
||||||
@Get()
|
@Get()
|
||||||
list(): Promise<CustomFontView[]> {
|
list(): Promise<CustomFontView[]> {
|
||||||
return this.fonts.list();
|
return this.fonts.list();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user