app
components
data
functions
api
admin-apps
appeals
[id]
_middleware.ts
submit.ts
toggle.ts
auth
game-appeals
inactivity
mod-queue
reports
uploads
_middleware.ts
gcloud.ts
permissions.ts
roblox-open-cloud.ts
public
.gitignore
.node-version
OFL.txt
emotion-server.js
index.css
index.d.ts
package-lock.json
package.json
remix.config.js
server.ts
theme.ts
tsconfig.json
12 lines
279 B
TypeScript
12 lines
279 B
TypeScript
export async function onRequest(context: RequestContext) {
|
|
if (!context.data.current_user)
|
|
return new Response('{"error":"Not logged in"}', {
|
|
headers: {
|
|
"content-type": "application/json",
|
|
},
|
|
status: 401,
|
|
});
|
|
|
|
return await context.next();
|
|
}
|