Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postmon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Matheus Horstmann
postmon
Commits
76a4e011
Commit
76a4e011
authored
12 years ago
by
Alê Borba
Browse files
Options
Downloads
Patches
Plain Diff
Retirando o /v1 da rota.
parent
f9f1b24f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PostmonServer.py
+2
-2
2 additions, 2 deletions
PostmonServer.py
with
2 additions
and
2 deletions
PostmonServer.py
+
2
−
2
View file @
76a4e011
...
...
@@ -54,7 +54,7 @@ def verifica_cep(cep):
return
result
@route
(
'
/
v1/
track/ect/<track>
'
)
@route
(
'
/track/ect/<track>
'
)
def
track_ect
(
track
):
try
:
encomenda
=
Correios
.
encomenda
(
track
)
...
...
@@ -74,7 +74,7 @@ def track_ect(track):
return
json
.
dumps
(
result
)
except
AttributeError
:
response
.
status
=
'
404 O pacote %s informado n
ã
o pode ser localizado
'
%
track
response
.
status
=
'
404 O pacote %s informado n
a
o pode ser localizado
'
def
_standalone
(
port
=
9876
):
run
(
host
=
'
localhost
'
,
port
=
port
)
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