Skip to content

Commit c148362

Browse files
committed
polish
1 parent e0f5b00 commit c148362

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

controllers/search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
22

33
/**
4-
* Basic CRUD operations for RERUM v1
5-
* @author Claude Sonnet 4, cubap, thehabes
4+
* Search ($search) operations for RERUM v1
5+
* @author thehabes
66
*/
77
import { db } from '../database/index.js'
88
import utils from '../utils.js'

routes/search.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import express from 'express'
22
const router = express.Router()
3-
//This controller will handle all MongoDB interactions.
43
import controller from '../db-controller.js'
54

65
router.route('/')
@@ -19,4 +18,7 @@ router.route('/phrase')
1918
next(res)
2019
})
2120

21+
// Note that there are more search functions available in the controller, such as controller.searchFuzzily
22+
// They can be used through additional endpoints here when we are ready.
23+
2224
export default router

0 commit comments

Comments
 (0)