Browse Source

FIX routes bug

tags/v1.0.0
Jasder 5 years ago
parent
commit
9438bf5cd1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/compare_controller.rb

+ 1
- 1
app/controllers/compare_controller.rb View File

@@ -7,7 +7,7 @@ class CompareController < ApplicationController

def show
base_ref = Addressable::URI.unescape(params[:base])
@ref = head_ref = Addressable::URI.unescape(params[:head])
@ref = head_ref = Addressable::URI.unescape(params[:head]&.split('.json')[0])
@compare_result = Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, base_ref, head_ref)

# render json: @compare_result


Loading…
Cancel
Save