mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
12 lines
271 B
JavaScript
12 lines
271 B
JavaScript
import { ServerKeys } from "@db_models"
|
|
|
|
export default {
|
|
middlewares: ["withAuthentication"],
|
|
fn: async (req, res) => {
|
|
const user_id = req.auth.session.user_id
|
|
|
|
return await ServerKeys.find({
|
|
owner_user_id: user_id
|
|
})
|
|
}
|
|
} |