change some routes

This commit is contained in:
Felix Ableitner 2024-12-02 11:34:58 +01:00
parent 7b423a0c81
commit 52f17281ca
3 changed files with 9 additions and 9 deletions

View file

@ -28,7 +28,7 @@
"eslint": "^9.14.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.5.0",
"lemmy-js-client": "0.20.0-api-v4.14",
"lemmy-js-client": "0.20.0-api-v4.16",
"prettier": "^3.2.5",
"ts-jest": "^29.1.0",
"typescript": "^5.5.4",

View file

@ -30,8 +30,8 @@ importers:
specifier: ^29.5.0
version: 29.7.0(@types/node@22.9.0)
lemmy-js-client:
specifier: 0.20.0-api-v4.14
version: 0.20.0-api-v4.14
specifier: 0.20.0-api-v4.15
version: 0.20.0-api-v4.15
prettier:
specifier: ^3.2.5
version: 3.3.3
@ -1167,8 +1167,8 @@ packages:
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
engines: {node: '>=6'}
lemmy-js-client@0.20.0-api-v4.14:
resolution: {integrity: sha512-kdhnQdbcA/jF7lRH5uwOBIcD6cK/9Xg7M9nq/MoxfOhSW7blPyssjQWRYcuhXpHVtjjffomr1uRJmzzVcMWp0A==}
lemmy-js-client@0.20.0-api-v4.15:
resolution: {integrity: sha512-OvTOf69oMx7ka44GGTX2PxTVhgnRkOj7GOLrF+q2w7sJo3zguuM1EaZz1+pLJSZx2hhPy6wmvtx4vd4t4jWpnw==}
leven@3.1.0:
resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==}
@ -3077,7 +3077,7 @@ snapshots:
kleur@3.0.3: {}
lemmy-js-client@0.20.0-api-v4.14: {}
lemmy-js-client@0.20.0-api-v4.15: {}
leven@3.1.0: {}

View file

@ -225,7 +225,7 @@ pub fn config(cfg: &mut ServiceConfig, rate_limit: &RateLimitCell) {
.route("/delete", post().to(delete_post))
.route("/remove", post().to(remove_post))
.route("/mark_as_read", post().to(mark_post_as_read))
.route("/mark_many_as_read", post().to(mark_posts_as_read))
.route("/mark_as_read/many", post().to(mark_posts_as_read))
.route("/hide", post().to(hide_post))
.route("/lock", post().to(lock_post))
.route("/feature", post().to(feature_post))
@ -299,7 +299,7 @@ pub fn config(cfg: &mut ServiceConfig, rate_limit: &RateLimitCell) {
)
.service(
scope("/account")
.route("/my_user", get().to(get_my_user))
.route("", get().to(get_my_user))
.route("/list_media", get().to(list_media))
.route("/mention", get().to(list_mentions))
.route("/replies", get().to(list_replies))
@ -309,7 +309,7 @@ pub fn config(cfg: &mut ServiceConfig, rate_limit: &RateLimitCell) {
post().to(mark_person_mention_as_read),
)
.route(
"/mention/mark_all_as_read",
"/mention/mark_as_read/all",
post().to(mark_all_notifications_read),
)
.route("/report_count", get().to(report_count))