Some falukant fixes, added undeground ui - no save right now, changed menu (and verification)
This commit is contained in:
@@ -58,6 +58,8 @@ class FalukantController {
|
||||
this.renovate = this.renovate.bind(this);
|
||||
this.renovateAll = this.renovateAll.bind(this);
|
||||
this.createBranch = this.createBranch.bind(this);
|
||||
this.getUndergroundTypes = this.getUndergroundTypes.bind(this);
|
||||
this.getNotifications = this.getNotifications.bind(this);
|
||||
}
|
||||
|
||||
async getUser(req, res) {
|
||||
@@ -806,6 +808,28 @@ class FalukantController {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
async getUndergroundTypes(req, res) {
|
||||
try {
|
||||
const { userid: hashedUserId } = req.headers;
|
||||
const result = await FalukantService.getUndergroundTypes(hashedUserId);
|
||||
res.status(200).json(result);
|
||||
} catch (error) {
|
||||
res.status(500).json({ error: error.message });
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
async getNotifications(req, res) {
|
||||
try {
|
||||
const { userid: hashedUserId } = req.headers;
|
||||
const result = await FalukantService.getNotifications(hashedUserId);
|
||||
res.status(200).json(result);
|
||||
} catch (error) {
|
||||
res.status(500).json({ error: error.message });
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default FalukantController;
|
||||
|
||||
Reference in New Issue
Block a user