@@ -73,7 +73,7 @@ export default function createRouter() {
7373
7474 router . post ( "/api/user/avatar" , withAuth , withContent , withSchema ( uploadUserImageRequestSchema ) , handleUploadUserAvatarRequest ) ;
7575
76- router . get ( "/api/ping" , withContent , async ( request : Request , env : Env ) => {
76+ router . get ( "/api/ping" , withContent , async ( request : RequestWithKey , env : Env ) => {
7777 return Response . json ( {
7878 ping : "pong" ,
7979 success : true
@@ -83,11 +83,11 @@ export default function createRouter() {
8383 router . post ( "/staging/register" , withStaging , withContent , handleStagingDeleteUserRequest ) ;
8484 router . post ( "/staging/verification" , withStaging , withContent , handleStagingVerificationRequest ) ;
8585
86- router . get ( "/staging/github" , withStaging , async ( request : Request , env : Env ) => {
86+ router . get ( "/staging/github" , withStaging , async ( request : RequestWithKey , env : Env ) => {
8787 return Response . json ( { sha : env . GITHUB_SHA } ) ;
8888 } ) ;
8989
90- router . get ( "/api/auth/random" , withStaging , async ( request : Request , env : Env ) => {
90+ router . get ( "/api/auth/random" , withStaging , async ( request : RequestWithKey , env : Env ) => {
9191 return Response . json ( {
9292 success : true ,
9393 key : await env . DATABASE . prepare ( "SELECT * FROM tokens WHERE user IS NOT NULL" ) . first < string > ( "key" )
0 commit comments