Added an very basic API implementation for KICAD

This commit is contained in:
Jan Böhmer 2023-10-09 00:55:42 +02:00
parent 6b0f0d31b9
commit 22f8448c65
2 changed files with 123 additions and 0 deletions

View file

@ -71,3 +71,5 @@ security:
- { path: "^/\\w{2}/tree", role: PUBLIC_ACCESS }
# Restrict access to API to users, which has the API access permission
- { path: "^/api", allow_if: 'is_granted("@api.access_api") and is_authenticated()' }
# Restrict access to KICAD to users, which has API access permission
- { path: "^/kicad-api", allow_if: 'is_granted("@api.access_api") and is_authenticated()' }