3.0.0 #220
@@ -36,6 +36,7 @@ app.setErrorHandler((error, _request, reply) => {
|
||||
await app.register(cors, {
|
||||
origin: true,
|
||||
credentials: true,
|
||||
methods: ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
|
||||
});
|
||||
await app.register(publicRoutes);
|
||||
await app.register(adminRoutes);
|
||||
|
||||
Reference in New Issue
Block a user