Skip to content

feat: Add AdminPanel API endpoints for adding and deleting custom fonts.#39

Open
lanttu1243 wants to merge 1 commit into
Euro-Office:mainfrom
lanttu1243:main
Open

feat: Add AdminPanel API endpoints for adding and deleting custom fonts.#39
lanttu1243 wants to merge 1 commit into
Euro-Office:mainfrom
lanttu1243:main

Conversation

@lanttu1243

Copy link
Copy Markdown

Implement an API endpoint for admins to add custom fonts to an instance of euro office server. This lays the ground work for a future implementation of a GUI-page to the euro-office admin panel client.

What is new

New server/AdminPanel/server/sources/routes/fonts/

router.js — endpoints, all behind the existing admin requireAuth:

  • GET /admin/api/v1/fonts — list files in customFontsDir (name, size, mtime) + current regeneration status.
  • POST /admin/api/v1/fonts — multipart upload, one or more files ( .ttf | .ttc | .otf ).
  • DELETE /admin/api/v1/fonts/:filename — remove a custom font file.
  • POST /admin/api/v1/fonts/regenerate — kick off regeneration.
  • GET /admin/api/v1/fonts/regenerate/status — idle | running | done | failed plus timestamp and captured tail of script output on failure.

Implemented unit tests
Assisted-by: ClaudeCode:claude-fable-5

An admin can add and remove custom fonts by calling the endpoints at /admin/api/v1/fonts.

Assisted-by: ClaudeCode:claude-fable-5
Signed-off-by: lanttu1243 <lasse.kukkula@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant