Consolidate search endpoints for better API organization

- Removed duplicate /api/search endpoint
- Kept /search as the main JSON API endpoint with proper documentation
- Added /search/form for web form submissions
- Updated HTML form to use /search/form endpoint
- Clear separation between API and web interface
- Media type enums still visible in /docs for API usage
- Maintains all functionality while reducing endpoint confusion
This commit is contained in:
2025-08-11 16:50:57 +07:00
parent 93284a9088
commit 664f58cefe
2 changed files with 9 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
</div>
{% endif %}
<form method="post" action="/search">
<form method="post" action="/search/form">
<div class="mb-3">
<label for="media_type" class="form-label">Media Type</label>
<select class="form-select" id="media_type" name="media_type" required>