added api page

added login
added api.ejs
added middleware for authorization check
This commit is contained in:
newtbot committed 2024-01-21 03:58:03 +08:00
1 parent 32be41ea46
commit d2ad32e6d6
27 files changed
+1229 -441

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = { apikeyCheck };
//web server microservice
1) take user supplied rowid-apikey
2) split the string by -
3) get the rowid
3) get the rowid or table id
4) get the apikey
5) compare the apikey with the one in database
6) if match, return true