rookie0 / nextcloud-sharing-path

🌩 Nextcloud app to enhance files sharing to be accessed by stored path, can be used as CDN origin.
GNU Affero General Public License v3.0
47 stars 11 forks source link

what about the share url? #56

Open faceless105 opened 4 months ago

faceless105 commented 4 months ago

Can this be added to work with the share url?

https://mync.com/s/j3cpWztp8ieBWjo - Nextcloud Shared link https://mync.com/apps/sharingpath/uid/Documents/test/txt - Current Share Path for raw file https://mync.com/apps/sharingpath/uid/j3cpWztp8ieBWjo - proposed Share path for raw file

Even better would be to remove the uid, but honestly at the moment, I think leaving the uid makes it easier because it's just modifying existing code.

I believe the relevant code is here: line 77, the handle function: https://github.com/rookie0/nextcloud-sharing-path/blob/master/lib/Controller/PathController.php

I'd be happy to help, I just don't know the documentation for nextcloud at all. If you could point me to it, I'd love to help contribute.