remove old notes
This commit is contained in:
parent
0e72eb09ad
commit
f590395bc6
1 changed files with 0 additions and 46 deletions
46
notes.txt
46
notes.txt
|
@ -1,46 +0,0 @@
|
||||||
admin routes:
|
|
||||||
- Get /login
|
|
||||||
|
|
||||||
- Post api/auth
|
|
||||||
|
|
||||||
- Get /dash {
|
|
||||||
dashboard. show list of tables, new table
|
|
||||||
}
|
|
||||||
|
|
||||||
- Get /new {
|
|
||||||
new table interface
|
|
||||||
}
|
|
||||||
- Post /new {
|
|
||||||
create new table
|
|
||||||
}
|
|
||||||
|
|
||||||
- Get /table/<name> {
|
|
||||||
edit given table - standard table view plus admin features
|
|
||||||
- manage availableTokens via /storage/ routes
|
|
||||||
- manage map bg
|
|
||||||
}
|
|
||||||
- Post/Put /storage/<table>/<type>/<name> {
|
|
||||||
upload token or map bg
|
|
||||||
}
|
|
||||||
- Delete /storage/<table>/<type>/<name> {
|
|
||||||
delete token
|
|
||||||
}
|
|
||||||
- Get /storage/ {
|
|
||||||
static storage tree
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
subscribe:
|
|
||||||
subscribe (tableKey) => {
|
|
||||||
subscriber[s] = tablekey;
|
|
||||||
return getCurrentState(tableKey)
|
|
||||||
}
|
|
||||||
|
|
||||||
publish:
|
|
||||||
publish (updateData) => {
|
|
||||||
writeToDB(updateData)
|
|
||||||
for s, k := range subscribers
|
|
||||||
if k == updateData.tableKey {
|
|
||||||
s.msgs <- updateData
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue