mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: today embeds
This commit is contained in:
1 parent
8f6388b42b
commit
438feefa83
8 files changed
+48
-10
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import resolvePlayerFromRequest from '../core/express/resolvePlayerFromRequest.js';
|
||||
import today from '../renderers/today.js';
|
||||
import { RouteRegistry } from '../server.js';
|
||||
|
||||
export const todayRoute: RouteRegistry = {
|
||||
route: '/today',
|
||||
inProduction: true,
|
||||
inDevelopment: true,
|
||||
|
||||
async handler(req) {
|
||||
const player = resolvePlayerFromRequest(req);
|
||||
|
||||
return await today(player, true);
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user