Skip to content

Commit

Permalink
refactor: renamed the endpoint of search schemes to schemes_search
Browse files Browse the repository at this point in the history
  • Loading branch information
CJBuzz committed Nov 13, 2024
1 parent 69063a1 commit 47d2b20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/functions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from firebase_functions import https_fn
from loguru import logger
from schemes.schemes import schemes # noqa: F401
from schemes.search import search # noqa: F401
from schemes.search import schemes_search # noqa: F401


# Initialise logger
Expand Down
4 changes: 2 additions & 2 deletions backend/functions/schemes/search.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
url for local testing:
http://127.0.0.1:5001/schemessg-v3-dev/asia-southeast1/search
http://127.0.0.1:5001/schemessg-v3-dev/asia-southeast1/schemes_search
"""

import json
Expand All @@ -25,7 +25,7 @@ def init_model():


@https_fn.on_request(region="asia-southeast1")
def search(req: https_fn.Request) -> https_fn.Response:
def schemes_search(req: https_fn.Request) -> https_fn.Response:
"""
Handler for schemes search endpoint
Expand Down

0 comments on commit 47d2b20

Please sign in to comment.