mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-23 16:37:30 +00:00
Compare commits
2 Commits
a9c7923b2c
...
7237ebf8d4
Author | SHA1 | Date | |
---|---|---|---|
|
7237ebf8d4 | ||
|
dc0a80d1cb |
@ -224,12 +224,8 @@ let constants = {
|
||||
self_blocked_status: {
|
||||
user_html: {
|
||||
enabled: true,
|
||||
time: 2*60*60*1000
|
||||
time: 60*60*1000
|
||||
},
|
||||
timeline_graphql: {
|
||||
enabled: true,
|
||||
time: 2*60*60*1000
|
||||
}
|
||||
},
|
||||
db_user_id: true,
|
||||
db_post_n3: false,
|
||||
|
@ -7,6 +7,17 @@ const crypto = require("crypto")
|
||||
const db = require("../../lib/db")
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
route: "/settings.json", methods: ["GET"], code: async ({req, url}) => {
|
||||
const token = getToken(req)
|
||||
const settings = getSettings(req)
|
||||
return {
|
||||
statusCode: 200,
|
||||
contentType: "application/json",
|
||||
content: settings
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
route: "/settings", methods: ["GET"], code: async ({req, url}) => {
|
||||
const token = getToken(req)
|
||||
|
Loading…
Reference in New Issue
Block a user