Skip to content

Commit

Permalink
Fix fail to add runners (#25)
Browse files Browse the repository at this point in the history
Resolves #20
  • Loading branch information
ChristopherHX authored May 13, 2021
1 parent 3b89da7 commit 789481f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Runner.Server/Controllers/AgentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
namespace Runner.Server.Controllers
{
[ApiController]
// [Authorize]
[Route("{owner}/{repo}/_apis/v1/[controller]")]
[Authorize(AuthenticationSchemes = "Bearer")]
public class AgentController : VssControllerBase
{

Expand Down
4 changes: 2 additions & 2 deletions src/Runner.Server/Controllers/AgentSessionController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand All @@ -16,9 +16,9 @@

namespace Runner.Server.Controllers
{
[Authorize(AuthenticationSchemes = "Bearer")]
[ApiController]
[Route("{owner}/{repo}/_apis/v1/[controller]")]
[Authorize(AuthenticationSchemes = "Bearer")]
public class AgentSessionController : VssControllerBase
{

Expand Down

0 comments on commit 789481f

Please sign in to comment.