mirror of https://sc.cryxtal.org/crystal/forgejo
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							25 lines
						
					
					
						
							412 B
						
					
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							412 B
						
					
					
				| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package v1
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| 
 | |
| 	"code.gitea.io/gitea/modules/json"
 | |
| )
 | |
| 
 | |
| type Forgejo struct{}
 | |
| 
 | |
| var _ ServerInterface = &Forgejo{}
 | |
| 
 | |
| func NewForgejo() *Forgejo {
 | |
| 	return &Forgejo{}
 | |
| }
 | |
| 
 | |
| var ForgejoVersion = "development"
 | |
| 
 | |
| func (f *Forgejo) GetVersion(w http.ResponseWriter, r *http.Request) {
 | |
| 	w.WriteHeader(http.StatusOK)
 | |
| 	_ = json.NewEncoder(w).Encode(Version{&ForgejoVersion})
 | |
| }
 |