reworked authentication and permission handling

This commit is contained in:
dswbx committed 2025-01-11 15:27:58 +01:00
1 parent 5823c2d245
commit bd4bc14282
20 files changed
+190 -101

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ export class MediaController extends Controller {
override getController() {
// @todo: multiple providers?
// @todo: implement range requests
const hono = this.create();
const { auth } = this.middlewares;
const hono = this.create().use(auth());
// get files list (temporary)
hono.get("/files", async (c) => {