Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[WIP] Node backend for API service #157

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[WIP] Node backend for API service #157

wants to merge 4 commits into from

Conversation

liumcse
Copy link
Owner

@liumcse liumcse commented Sep 26, 2020

Description

Please explain the changes you made here.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

@liumcse liumcse temporarily deployed to ntuvibe December 12, 2020 15:44 Inactive
@liumcse liumcse temporarily deployed to ntuvibe December 12, 2020 15:56 Inactive
@liumcse liumcse temporarily deployed to ntuvibe December 12, 2020 16:06 Inactive
return res.json(courseList);
});

courses.get("/course/search", async (req: Request, res: Response) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我感觉这里和上面的 /course/all 可以合并更符合REST的面向资源的思想

all API: /courses
query API: /course?q=xxx
getOne API: /courses/:courseID

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants