various: markdown improvements
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I81fda8247814da19eed1e76dbe97bd5b6a6a6964
This commit is contained in:
parent
875bdf5ebc
commit
80a8b5c7ca
23 changed files with 3458 additions and 30 deletions
|
|
@ -231,7 +231,17 @@ pub fn create_router_with_tls(
|
|||
.route(
|
||||
"/notifications/shares",
|
||||
get(routes::shares::get_notifications),
|
||||
);
|
||||
)
|
||||
// Markdown notes/links (read)
|
||||
.route(
|
||||
"/media/{id}/backlinks",
|
||||
get(routes::notes::get_backlinks),
|
||||
)
|
||||
.route(
|
||||
"/media/{id}/outgoing-links",
|
||||
get(routes::notes::get_outgoing_links),
|
||||
)
|
||||
.nest("/notes", routes::notes::routes());
|
||||
|
||||
// Write routes: Editor+ required
|
||||
let editor_routes = Router::new()
|
||||
|
|
@ -281,6 +291,11 @@ pub fn create_router_with_tls(
|
|||
"/media/{id}/custom-fields/{name}",
|
||||
delete(routes::media::delete_custom_field),
|
||||
)
|
||||
// Markdown notes/links (write)
|
||||
.route(
|
||||
"/media/{id}/reindex-links",
|
||||
post(routes::notes::reindex_links),
|
||||
)
|
||||
.route("/tags", post(routes::tags::create_tag))
|
||||
.route("/tags/{id}", delete(routes::tags::delete_tag))
|
||||
.route("/media/{media_id}/tags", post(routes::tags::tag_media))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue