Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
76204b9f
Commit
76204b9f
authored
Jun 09, 2017
by
Dan Gershony
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the version from the api controller
parent
ec27e664
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
NodeController.cs
Breeze/src/Breeze.Api/Controllers/NodeController.cs
+1
-1
Startup.cs
Breeze/src/Breeze.Api/Startup.cs
+0
-5
No files found.
Breeze/src/Breeze.Api/Controllers/NodeController.cs
View file @
76204b9f
...
@@ -5,7 +5,7 @@ using Stratis.Bitcoin.Notifications;
...
@@ -5,7 +5,7 @@ using Stratis.Bitcoin.Notifications;
namespace
Breeze.Api.Controllers
namespace
Breeze.Api.Controllers
{
{
[
Route
(
"api/
v{version:apiVersion}/
[controller]"
)]
[
Route
(
"api/[controller]"
)]
public
class
NodeController
:
Controller
public
class
NodeController
:
Controller
{
{
private
readonly
BlockNotification
blockNotification
;
private
readonly
BlockNotification
blockNotification
;
...
...
Breeze/src/Breeze.Api/Startup.cs
View file @
76204b9f
...
@@ -56,11 +56,6 @@ namespace Breeze.Api
...
@@ -56,11 +56,6 @@ namespace Breeze.Api
.
AddJsonOptions
(
options
=>
NBitcoin
.
JsonConverters
.
Serializer
.
RegisterFrontConverters
(
options
.
SerializerSettings
))
.
AddJsonOptions
(
options
=>
NBitcoin
.
JsonConverters
.
Serializer
.
RegisterFrontConverters
(
options
.
SerializerSettings
))
.
AddControllers
(
services
);
.
AddControllers
(
services
);
services
.
AddApiVersioning
(
options
=>
{
options
.
DefaultApiVersion
=
new
ApiVersion
(
1
,
0
);
});
// Register the Swagger generator, defining one or more Swagger documents
// Register the Swagger generator, defining one or more Swagger documents
services
.
AddSwaggerGen
(
setup
=>
services
.
AddSwaggerGen
(
setup
=>
{
{
...
...
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