Commit Graph

13 Commits

Author SHA1 Message Date
86b9081354 + Rust docs where needed
There may be more changes that could be
added to improve documentation however
this is meant to be a good start.

!+ There is also a new redirect endpoint for /admin/dashboard
This just a convenience thing so that people
don't have to remember the '/dashboard'
part of the admin route.
2022-03-26 21:51:07 -07:00
shockrah
db637c0889 * Cargo clippy cleanup 2022-02-05 13:49:49 -08:00
shockrah
6bb44e5d05 + Added support on /clips/<cat>/<file> to ignore the file extension
With this the frontend can produce opengraph fetch-friendly url's
2021-10-25 23:31:18 -07:00
shockrah
f42f125766 * Optimizing thumbnail generation so they're 640x?
This makes them literally 30Kb on average for my personal use
Also they're thumbnails so they could actually be smaller
! forcing thumbnails to be jpg as well
2021-10-20 21:45:47 -07:00
shockrah
c53d9a293e ! Finalizing video fetch endpoint
With this the backend is officially at an MVP stage and now requires polishing
Proper data streaming for larger clips is basically required
for a really good backend(especially async streaming)
and some better css for the video player
2021-10-16 18:14:04 -07:00
shockrah
d6b076970f + Video clip endpoint
Let's users actually request videos
+ Meta data handling for video clip pages
+ Template for video pages
2021-10-13 00:21:27 -07:00
shockrah
254da1ae90 * vid_file_entries now uses common::get_clips_dir
- get_video_preview
This is because of the old base64 requirement
* /api/category/<cat> handler now returns Option<Json<Vec<VideoPreview>>>
While more verbose we can more easily convey intentions
to any consumers of this endpoint.
Those intentions being that None values just mean nothing was found
2021-10-12 22:17:50 -07:00
shockrah
69dfa488d9 * /api/categories/<cat> fully working and cleaned up 2021-10-11 23:39:06 -07:00
shockrah
b9c4cb7c6b * /api/categories/<cat> is now working properly
Output should be correct for the frontend
2021-10-11 20:39:51 -07:00
shockrah
b763329abd + api::list_categories now re-added and working as intended
! This patch is massive but idc right now im sprinting to finish this conversion
2021-10-11 14:34:50 -07:00
shockrah
4b6ced439d ! Bulk commit of progression
A lot off issues with the current design make 100% more sense by cutting hugo out of the picture entirely
This means we're switching fully to rocket however
we're not going to leave behind the work done with hugo,
we're just going to migrate it over first
2021-10-08 13:21:09 -07:00
shockrah
6b8e7de31a * Thumbnails are now included in api response 2021-10-05 13:47:37 -07:00
shockrah
5b3f6efebf * Simplifying backend api by... alot 2021-10-04 12:19:41 -07:00