Commit Graph

43 Commits

Author SHA1 Message Date
Thomas Ruoff
0e84945ab4 rip out all old auth data 2021-10-06 00:32:30 +02:00
Thomas Ruoff
b257bc8258 move to next-auth 2021-10-06 00:32:30 +02:00
Thomas Ruoff
718ed41f8d rename api end url to bookings 2021-06-21 23:41:38 +02:00
Thomas Ruoff
9f3b6bb2e1 remover booker, that's overdosed
It also brings the problem of consolidating bookers over multiple
bookings. The amount of data is not justifying having it in an own
entity
2021-06-21 23:21:23 +02:00
Thomas Ruoff
9024310ce0 move login and add logout 2021-06-16 23:36:28 +02:00
Thomas Ruoff
b6a1e45fcf one api endpoint for admin/non-admin 2021-06-16 23:36:28 +02:00
Thomas Ruoff
9fe3fffb86 infer return type of functions 2021-03-22 23:14:48 +01:00
Thomas Ruoff
a5f60c1114 log sending booking received mail 2020-11-10 22:48:15 +01:00
Thomas Ruoff
195da65cd9 remove *Document intefaces from FE code 2020-11-06 23:37:04 +01:00
Thomas Ruoff
7ee9803adc make isAdminSession usable by api routes 2020-11-04 00:33:35 +01:00
Thomas Ruoff
1dfd1f1f8b add a proper login page 2020-11-04 00:14:29 +01:00
Thomas Ruoff
b283ffe476 send mail when booking is confirmed or rejected 2020-11-03 21:50:12 +01:00
Thomas Ruoff
cb9932240d add confirm and reject buttons to adming/booking 2020-11-02 23:25:00 +01:00
Thomas Ruoff
19c8bc7be2 move admin api to /admin 2020-11-02 22:44:27 +01:00
Thomas Ruoff
ecc3715f27 fix allow header for routes 2020-11-02 22:05:32 +01:00
Thomas Ruoff
e2aab12cdf add email to customer as well 2020-10-26 23:43:39 +01:00
Thomas Ruoff
c55f8f8b3a Admin page for bill wit iron-session (#13) 2020-10-22 00:40:09 +02:00
Thomas Ruoff
c396cdcbf9 further work on billing 2020-10-07 22:46:13 +02:00
Thomas Ruoff
ec1b2e9629 enable bill storing 2020-10-07 22:46:13 +02:00
Thomas Ruoff
2e73875d37 first stab on bill model 2020-10-07 22:46:13 +02:00
Thomas Ruoff
52917f7bbd set name of calendar 2020-09-18 00:53:10 +02:00
Thomas Ruoff
5e2f83bc0f ics is the correct suffix 2020-09-18 00:53:10 +02:00
Thomas Ruoff
da0ee84974 fix content type for ical 2020-09-18 00:53:10 +02:00
Thomas Ruoff
56c8263e90 firt attempt for an ics calendar 2020-09-18 00:53:10 +02:00
Thomas Ruoff
038e2b2420 another try to fix types for models 2020-09-09 00:25:09 +02:00
Thomas Ruoff
cf92a69fa7 return 400 when validation fails 2020-09-09 00:25:09 +02:00
Thomas Ruoff
4b16e07985 further code improvements 2020-09-09 00:25:09 +02:00
Thomas Ruoff
52a68e9989 further typing improvements 2020-09-09 00:25:09 +02:00
Thomas Ruoff
be1e22460d rename js/x ts/x 2020-09-09 00:25:09 +02:00
Thomas Ruoff
7ca2322717 introduce jsx files 2020-09-09 00:25:09 +02:00
Thomas Ruoff
ec294eaabe add patch for bookings and only allow status 2020-08-25 23:56:41 +02:00
Thomas Ruoff
e9f4753fdc add /booking/uuid 2020-08-22 00:09:11 +02:00
Thomas Ruoff
06f11e4e6d return if creating booker failed 2020-08-20 23:22:05 +02:00
Thomas Ruoff
d86f438f80 send mail 2020-08-18 00:22:03 +02:00
Thomas Ruoff
e4c8b7ceba ok, bad idea. moving everything that is not a page out of pages 2020-08-01 16:38:03 +02:00
Thomas Ruoff
95242403c5 move helpers out again
seems anything under pages, besides api needs to be a react component
2020-08-01 16:23:48 +02:00
Thomas Ruoff
528f46a533 move db into api 2020-08-01 16:05:32 +02:00
Thomas Ruoff
027cf45faa improve booking call 2020-08-01 14:31:19 +02:00
Thomas Ruoff
518b437d14 more hacking 2020-07-26 00:13:05 +02:00
Thomas Ruoff
90a9288e84 make storing work 2020-07-25 19:19:37 +02:00
Thomas Ruoff
809f69a3bd fetch booked from api with swr 2020-07-16 23:22:47 +02:00
Thomas Ruoff
6b13096709 added booked api call 2020-07-01 00:26:34 +02:00
Thomas Ruoff
699df3415b Initial commit from Create Next App 2020-06-27 00:08:55 +02:00