Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
H
hw88AlenBolatov
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Болатов Ален
  • hw88AlenBolatov
  • Issues
  • #3

Closed
Open
Opened Mar 15, 2023 by Болатов Ален@alen_bolatov
  • Report abuse
  • New issue
Report abuse New issue

add generic controller

Task

add generic controller

Solution

  1. import model from mongoose
  2. import request and response from express
  3. add create, getAll and get functions

Test

using postamn and of the routes try to create get or getbyid document

Expected work time

30 minutes

Edited Mar 16, 2023 by Болатов Ален
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: alen_bolatov/hw88alenbolatov#3