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