forked from opengovsg/GoGovSG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add documentation for search methods (opengovsg#329)
- Loading branch information
1 parent
ff8c7d9
commit b75632d
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/server/controllers/interfaces/SearchControllerInterface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import Express from 'express' | ||
|
||
export interface SearchControllerInterface { | ||
/** | ||
* Controller for plain text search on urls. | ||
* @param {Express.Request} req Express request. | ||
* @param {Express.Response} res Express response. | ||
* @returns Empty promise that resolves when the request has been processed. | ||
*/ | ||
urlSearchPlainText(req: Express.Request, res: Express.Response): Promise<void> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters