Commit Graph

19 Commits

Author SHA1 Message Date
KevinMidboe 768cffc93b Removed sequelize. Handled importing of models in another (pre esma6) fashion. 2019-03-03 21:16:35 +01:00
KevinMidboe 7d4a45f3c3 Moved uploadRequest proxyRequest handler to imageController. 2019-03-03 21:15:26 +01:00
KevinMidboe 4fe94e5471 Routes moved from /routes to routes.js. app.js updated accordingly. 2019-03-03 21:14:55 +01:00
KevinMidboe 06a97a2a4b List returned by adventure id is ordered by album_order. UploadHandler proxies the request to another api and waits for response. Delete finds matching filename by query parameters and removes it from the database. 2019-03-03 21:03:58 +01:00
KevinMidboe 6447fb3cef No longer export unused uploadHandler function. 2019-03-03 20:24:03 +01:00
KevinMidboe f5b63afd03 Removed dsstore 2019-03-03 20:23:19 +01:00
KevinMidboe fb054e300e Image model gets a new folder column 2019-03-03 20:22:11 +01:00
KevinMidboe bb86d4806f Updated seeders for images and migration for adding folder column to images 2019-03-03 20:21:41 +01:00
KevinMidboe a1dc572510 Changed our postgres database name to leifsopplevelser 2019-03-02 23:23:51 +01:00
KevinMidboe 82704394a9 Created migrations for all tables. 2019-03-02 23:23:25 +01:00
KevinMidboe 16bf0f0d9e Ignore MacOS DS_Store files 2019-03-02 23:22:54 +01:00
KevinMidboe d2a92ab633 Updated models adventure from string to text. Cleaned up comments and unused code in models/index.js. The database does not sync so migrations will need to be created. 2019-03-02 22:49:39 +01:00
KevinMidboe 31dc6c02be Location checks queryparameter name and if set only returns matching location. 2019-03-02 22:46:58 +01:00
KevinMidboe bd62e76b0d Calendar enpoint for listing all events. TODO add date-filtering. 2019-03-02 22:45:16 +01:00
KevinMidboe 417ec775ff Added order by datestart when fecting all Adventures as list. Create now first creates a location and then the adventure. started enpoint for handling uploading of images. These requests will be redirected to another python web server. 2019-03-02 22:42:54 +01:00
KevinMidboe 036131c1ce Defined correct cors requirements for options and Access-Control-Allow-Origin to all requestes. 2019-03-02 22:27:39 +01:00
KevinMidboe 4d649a32f0 Added script command start. 2019-03-02 22:26:01 +01:00
KevinMidboe cfd0b88987 Working backend setup with endpoints and database setup for adventures. 2019-02-18 22:42:52 +01:00
KevinMidboe ba1070d5b2 Initial commit 2019-02-15 23:20:07 +01:00