mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
Migrate to typescript
This commit is contained in:
5
www/pages/api/sentry-example-api.js
Normal file
5
www/pages/api/sentry-example-api.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// A faulty API route to test Sentry's error monitoring
|
||||
export default function handler(_req, res) {
|
||||
throw new Error("Sentry Example API Route Error");
|
||||
res.status(200).json({ name: "John Doe" });
|
||||
}
|
||||
Reference in New Issue
Block a user