Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jsk22
treinamento-web-backend
Commits
02175c8b
Commit
02175c8b
authored
1 year ago
by
jsk22
Browse files
Options
Download
Email Patches
Plain Diff
:)
parent
f3ed5acb
master
No related merge requests found
Pipeline
#32902
failed with stage
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Classes/employees.ts
+1
-1
src/Classes/employees.ts
src/Controller/usercontrol.ts
+4
-3
src/Controller/usercontrol.ts
with
5 additions
and
4 deletions
+5
-4
src/Classes/employees.ts
+
1
-
1
View file @
02175c8b
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/Controller/usercontrol.ts
+
4
-
3
View file @
02175c8b
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help