Commit Graph

114 Commits

Author SHA1 Message Date
Cameron Cordes
a49619c98c Move url to env variable 2020-07-16 20:18:38 -04:00
Cameron Cordes
c90987d709 Check extensions case-invariant
Ran clippy and linted some of the logic.
2020-07-16 20:16:17 -04:00
Cameron Cordes
7d369aab5c Generate thumbnails before API starts up
Clients can now request a thumbnail by specifying a size on the image
request.
2020-07-15 12:06:50 -04:00
Cameron Cordes
ca761f605b Check and use correct paths for generating HLS playlist
This also should prevent generating the playlist if it already exists
and uses a better ffmpeg command for transcoding the video.
2020-07-14 15:45:10 -04:00
Cameron Cordes
c39bf970be Generating a HLS playlist through ffmpeg
I might be able to streamline the requests to cut down on the endpoints.
This also will likely take some time if the file is large and could time
out, that may be a concern for another day.
2020-07-13 22:39:00 -04:00
Cameron Cordes
78c066b7be Update Photos API
Since there is a body to the photos api it should be a post for now.
Also updated the response to separate files and directories.
2020-07-09 18:22:03 -04:00
Cameron Cordes
e0e12dcc7b Remove Environment file 2020-07-08 21:41:22 -04:00
Cameron Cordes
536300e0a1 Serving files is working
Right now we're not doing any streaming and this isn't ideal. I'll need
to figure it out at some point.
2020-07-08 21:38:21 -04:00
Cameron Cordes
82203d9a41 Create Account endpoint works 2020-07-08 09:19:27 -04:00
Cameron Cordes
e3bb607d95 Fix token parsing and require Auth for list files 2020-07-07 22:37:20 -04:00
Cameron Cordes
2aa1b61429 Move database into the main app
I was having issues including the lib as a crate, its fine just being a
module for now.
2020-07-07 21:48:29 -04:00
Cameron Cordes
1c1c8531aa Ignore database files 2020-07-07 21:07:00 -04:00
Cameron Cordes
f8df3678b1 Setup Auth DB 2020-07-07 21:06:43 -04:00
Cameron Cordes
36f7351627 Initial API setup
Right now we are just listing files in a given subdirectory with not
authentication.
2020-07-07 19:53:12 -04:00