Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup routes #2

Merged
merged 25 commits into from
Oct 16, 2019
Merged

Setup routes #2

merged 25 commits into from
Oct 16, 2019

Conversation

prestonlimlianjie
Copy link
Contributor

This PR sets up the backend routes and classes for the following:

Routes

  • Pages
  • Collections
  • CollectionPages
  • Images
  • Documents
  • Sites

Classes

  • File
  • Config
  • Collection

@prestonlimlianjie prestonlimlianjie merged commit 69f70f7 into master Oct 16, 2019
@prestonlimlianjie prestonlimlianjie deleted the setup-routes branch October 16, 2019 12:31
harishv7 pushed a commit that referenced this pull request Feb 17, 2023
* Set up the routes layer for the backend server

* add first draft of Pages routes

* add first draft of Files and Images routes

* fix typo in commit messages

* add CollectionPages and ResourcePages routes

* rename files routes to documents to minimize confusion

* ensure that all ages routes endpoints work

* refactor routes layer into File class + use Strategy pattern

* clean up + add list pages for Collection and Resource routes

* make routes functional

* remove console log

* add GET collections route

* remove collections reorder endpoint

* lint file

* set up Config class

* add navigation routes

* update collections routes

* create a Collection class + refactor Config

* move endpoint to list pages in collection to collectionPages routes

* remove hbs view engine

* return empty object if folder is not found

* add autogenerated permalink to collections

* add cors module

* fix typo in documents routes

* fix typo + ensure that routes return a response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant