websocket support and route fixes
This commit is contained in:
parent
897dd38151
commit
c40bdcbbed
6 changed files with 218 additions and 84 deletions
|
|
@ -46,10 +46,11 @@ CREATE TABLE templates (
|
|||
|
||||
CREATE TABLE routes (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
verb TEXT CHECK(verb IN ('POST', 'GET', 'PUT', 'DELETE')) NOT NULL,
|
||||
verb TEXT CHECK(verb IN ('POST', 'GET', 'PUT', 'DELETE', 'WS')) NOT NULL,
|
||||
path TEXT NOT NULL,
|
||||
structure_id INTEGER,
|
||||
handler TEXT NOT NULL,
|
||||
error TEXT,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY(structure_id) REFERENCES structures(id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue