Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netvs-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scc-net
netvs
netvs-middleware
Commits
99d82411
Commit
99d82411
authored
11 months ago
by
!! Julian Keck (old Account; do not use) !!
Browse files
Options
Downloads
Patches
Plain Diff
UPD remove deprecated API endpoint from middleware
parent
20089c91
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/mail_requests.py
+0
-20
0 additions, 20 deletions
api/mail_requests.py
api/patch_request.py
+1
-1
1 addition, 1 deletion
api/patch_request.py
model/patch_request.py
+0
-0
0 additions, 0 deletions
model/patch_request.py
with
1 addition
and
21 deletions
api/mail_requests.py
deleted
100644 → 0
+
0
−
20
View file @
20089c91
from
fastapi
import
Depends
,
APIRouter
from
api
import
get_conn
,
patch_request
from
model.mail_requests
import
PatchRequestFormRequest
from
model.wapi.cntl
import
APIToken
from
util.auth
import
check_auth
router
=
APIRouter
(
prefix
=
"
/api/mail_requests
"
,
tags
=
[
"
mail_requests
"
]
)
js_mods
=
[
'
patchrequest
'
]
@router.post
(
'
/send_patch_request
'
,
deprecated
=
True
,
description
=
'
Endpoint Deprecated; use /api/patch_request instead!
'
)
async
def
handle_request
(
patch_request_form_request
:
PatchRequestFormRequest
,
token
:
APIToken
=
Depends
(
check_auth
),
conn
=
Depends
(
get_conn
),
):
return
patch_request
.
handle_request
(
patch_request_form_request
,
token
,
conn
)
This diff is collapsed.
Click to expand it.
api/patch_request.py
+
1
−
1
View file @
99d82411
...
...
@@ -7,7 +7,7 @@ from fastapi import APIRouter, Depends, HTTPException
from
starlette
import
status
from
api
import
db
,
get_conn
from
model.
mail
_request
s
import
APIPatchRequestAction
,
PatchRequestFormRequest
,
InformalPatchRequestFormRequest
,
\
from
model.
patch
_request
import
APIPatchRequestAction
,
PatchRequestFormRequest
,
InformalPatchRequestFormRequest
,
\
PatchRequestAction
,
PatchActionType
from
model.settings
import
settings
from
model.wapi.cntl
import
APIToken
,
Mgr
...
...
This diff is collapsed.
Click to expand it.
model/
mail
_request
s
.py
→
model/
patch
_request.py
+
0
−
0
View file @
99d82411
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment