mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-25 11:48:31 +00:00
reworked authentication and permission handling
This commit is contained in:
20 files changed
+190
-101
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user