1
+ /* eslint import/no-nodejs-modules: ["error", {"allow": ["crypto"]}] */
1
2
import { randomUUID } from "crypto" ;
2
3
import fastify , { FastifyInstance } from "fastify" ;
3
4
import FastifyAuthProvider from "@fastify/auth" ;
@@ -17,7 +18,7 @@ import vendingPlugin from "./routes/vending.js";
17
18
import * as dotenv from "dotenv" ;
18
19
import iamRoutes from "./routes/iam.js" ;
19
20
import ticketsPlugin from "./routes/tickets.js" ;
20
- import paidEventsPlugin from "./routes/paidEvents .js" ;
21
+ import linkryRoutes from "./routes/linkry .js" ;
21
22
import { STSClient , GetCallerIdentityCommand } from "@aws-sdk/client-sts" ;
22
23
import NodeCache from "node-cache" ;
23
24
import { DynamoDBClient } from "@aws-sdk/client-dynamodb" ;
@@ -27,7 +28,6 @@ import stripeRoutes from "./routes/stripe.js";
27
28
import membershipPlugin from "./routes/membership.js" ;
28
29
import path from "path" ; // eslint-disable-line import/no-nodejs-modules
29
30
import roomRequestRoutes from "./routes/roomRequests.js" ;
30
- import linkryRoutes from "./routes/linkry.js" ;
31
31
32
32
dotenv . config ( ) ;
33
33
@@ -82,9 +82,6 @@ async function init(prettyPrint: boolean = false) {
82
82
return event . requestContext . requestId ;
83
83
} ,
84
84
} ) ;
85
- const __filename = fileURLToPath ( import . meta. url ) ; // get the resolved path to the file
86
- const __dirname = path . dirname ( __filename ) ;
87
-
88
85
await app . register ( fastifyAuthPlugin ) ;
89
86
await app . register ( fastifyZodValidationPlugin ) ;
90
87
await app . register ( FastifyAuthProvider ) ;
@@ -131,7 +128,6 @@ async function init(prettyPrint: boolean = false) {
131
128
async ( api , _options ) => {
132
129
api . register ( protectedRoute , { prefix : "/protected" } ) ;
133
130
api . register ( eventsPlugin , { prefix : "/events" } ) ;
134
- api . register ( paidEventsPlugin , { prefix : "/paidEvents" } ) ;
135
131
api . register ( organizationsPlugin , { prefix : "/organizations" } ) ;
136
132
api . register ( membershipPlugin , { prefix : "/membership" } ) ;
137
133
api . register ( icalPlugin , { prefix : "/ical" } ) ;
0 commit comments