✨(frontend) set up Vite-based frontend project
Chose Vite for static output efficiency, aligning with project needs. All API interactions are currently unauthenticated. SSO support planned soon, using ProConnect. UX is minimalistic, and showcases the core idea. Components introduced: * AppProvider * Select and TextArea Rhf inputs API hooks introduced: * useGeneratePDF, generates a PDF, and downloads it in the client. * useTemplates, fetches available templates to populate Select options.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
"""URL configuration for the core app."""
|
||||
from django.urls import path
|
||||
|
||||
from core.views import generate_document
|
||||
from core.views import generate_document, TemplatesApiView, GenerateDocumentAPIView
|
||||
|
||||
urlpatterns = [
|
||||
path('generate-document/', generate_document, name='generate_document'),
|
||||
path('api/generate-document/', GenerateDocumentAPIView.as_view(), name='generate-document'),
|
||||
path('api/templates', TemplatesApiView.as_view()),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user