feat: refactoring, soem work on forms
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { isLoggedIn } from "../lib/auth.ts";
|
||||
import { define } from "../utils.ts";
|
||||
|
||||
export default define.middleware((ctx) => {
|
||||
ctx.state.loggedIn = isLoggedIn(ctx.req);
|
||||
return ctx.next();
|
||||
});
|
||||
Reference in New Issue
Block a user