mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
9 lines
347 B
JavaScript
Executable File
9 lines
347 B
JavaScript
Executable File
export default {
|
|
method: "GET",
|
|
route: "/posting_policy",
|
|
middlewares: ["withOptionalAuthentication"],
|
|
fn: async (req, res) => {
|
|
// TODO: Use `PermissionsAPI` to get the user's permissions and return the correct policy, by now it will return the default policy
|
|
return res.json(global.DEFAULT_POSTING_POLICY)
|
|
}
|
|
} |