forked from jmug/stoatchat
Messaging: Upsert mentions into unreads.
Messaging: Allow multiple attachment upload.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use crate::database::*;
|
||||
use crate::util::result::Result;
|
||||
|
||||
use rocket_contrib::json::JsonValue;
|
||||
use mongodb::bson::doc;
|
||||
use rocket_contrib::json::JsonValue;
|
||||
|
||||
#[get("/unreads")]
|
||||
pub async fn req(user: User) -> Result<JsonValue> {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use rocket::Route;
|
||||
|
||||
mod get_settings;
|
||||
mod set_settings;
|
||||
mod get_unreads;
|
||||
mod set_settings;
|
||||
|
||||
pub fn routes() -> Vec<Route> {
|
||||
routes![get_settings::req, set_settings::req, get_unreads::req]
|
||||
|
||||
Reference in New Issue
Block a user