mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
reworked authentication and permission handling
This commit is contained in:
@@ -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