aboutsummaryrefslogtreecommitdiffstats
path: root/src/controllers/room.rs
Commit message (Collapse)AuthorAgeFilesLines
* Import model structs to main models module.Harald Eilertsen2019-04-081-2/+2
|
* Move functions to query/modify db to connection object.Harald Eilertsen2019-04-081-1/+1
| | | | | | Makes tha API a bit nicer by asking the database rather than passing the database on to each model. Reserve models for method/functions that work on the model structs themselves.
* Actually fetch available rooms from the database.Harald Eilertsen2019-03-211-5/+8
|
* Refactoring, move db connection and room controller to separate modules.Harald Eilertsen2019-03-041-0/+29