Commit 02175c8b authored by jsk22's avatar jsk22
Browse files

:)

parent f3ed5acb
No related merge requests found
Pipeline #32902 failed with stage
in 1 minute and 16 seconds
Showing with 5 additions and 4 deletions
+5 -4
......@@ -34,4 +34,4 @@ export class Employee {
this.job_position = infos.job_position;
this.schedule = infos.schedule;
}
}
\ No newline at end of file
}
\ No newline at end of file
import * as express from "express";
import { DBHandler } from "../DBHandler";
import { Request } from "../Middleware/middleware"
export class usercontroller {
public static add_user (req: express.Request, res: express.Response) {
......@@ -7,8 +8,8 @@ export class usercontroller {
res.json(req.params);
}
public static get_user (req: express.Request, res: express.Response){
res.json(req.params);
public static get_user (req: Request, res: express.Response){
res.json(req.db.getEmployee);
}
public static update_user (req: express.Request, res: express.Response) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment