mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Format code
This commit is contained in:
parent
878dd6912e
commit
530738cfe9
@ -51,7 +51,7 @@ impl Main {
|
|||||||
pub fn created_at(self, reader: &heed::RoTxn) -> ZResult<Option<DateTime<Utc>>> {
|
pub fn created_at(self, reader: &heed::RoTxn) -> ZResult<Option<DateTime<Utc>>> {
|
||||||
self.main.get::<Str, SerdeDatetime>(reader, CREATED_AT)
|
self.main.get::<Str, SerdeDatetime>(reader, CREATED_AT)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn put_updated_at(self, writer: &mut heed::RwTxn) -> ZResult<()> {
|
pub fn put_updated_at(self, writer: &mut heed::RwTxn) -> ZResult<()> {
|
||||||
self.main
|
self.main
|
||||||
.put::<Str, SerdeDatetime>(writer, UPDATED_AT, &Utc::now())
|
.put::<Str, SerdeDatetime>(writer, UPDATED_AT, &Utc::now())
|
||||||
|
@ -60,7 +60,11 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
router.at("/synonym").nest(|router| {
|
router.at("/synonym").nest(|router| {
|
||||||
router.at("/").get(synonym::list).post(synonym::create).delete(synonym::clear);
|
router
|
||||||
|
.at("/")
|
||||||
|
.get(synonym::list)
|
||||||
|
.post(synonym::create)
|
||||||
|
.delete(synonym::clear);
|
||||||
|
|
||||||
router
|
router
|
||||||
.at("/:synonym")
|
.at("/:synonym")
|
||||||
|
Loading…
Reference in New Issue
Block a user