generated from vivmagarwal/mock-api
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathserverConfig.js
17 lines (16 loc) · 915 Bytes
/
serverConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default {
protectedRoutes: [
{ route: "/users", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/posts", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/comments", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/photos", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/todos", methods: ["GET", "POST", "PUT", "DELETE", "PATCH"] },
{ route: "/recipeCategories", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/recipeIngredients", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/recipes", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/areas", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/recipeTags", methods: ["POST", "PUT", "DELETE", "PATCH"] },
{ route: "/orders", methods: ["GET", "POST", "PUT", "DELETE", "PATCH"] },
]
}
// Employees, departments & cats are not protected.