You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I still need to flesh out exactly what sort of answers the REST callbacks make. So far "OK" (with quotes) for short responses, status 500 & 401 with {message:'The problem stated as a sentence.'} description for errors, depending on if it's a basic server error or if it's an authentication issues. I think these should be more standardized which will require more wrapping. In any case, feel free to get started.
The basic setup is this:
// middleware function calls next if user has a token, send module.exports=verifyFunction(){};// sets up sub-route: returns an express() object with the endpoints in docs: module.exports.middleware=function(SETTINGS){}
Maybe I should make a skeleton for express that just checks for a plain password, with no database, just to make it really clear how it works (and give an extendable module to start with, so you don't have to rewrite the token function.)
A postgres version of back-node
The text was updated successfully, but these errors were encountered: