Added token authentication, organization module. Moved server bootstrapping code to server.ts file
This commit is contained in:
@@ -26,7 +26,8 @@ export async function getUserHandler(
|
||||
|
||||
try {
|
||||
const user = await getUser(userId);
|
||||
if (user == null) return res.code(404).send({ error: "user not found" });
|
||||
if (user == null)
|
||||
return res.code(404).send({ error: "resource not found" });
|
||||
|
||||
return res.code(200).send(user);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user