mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Add internal routes for ssh hook comands (#1471)
* add internal routes for ssh hook comands * fix lint * add comment on why package named private not internal but the route name is internal * add comment above package private why package named private not internal but the route name is internal * remove exp time on internal access * move routes from /internal to /api/internal * add comment and defer on UpdatePublicKeyUpdated
This commit is contained in:
		| @@ -62,6 +62,11 @@ func newRequest(url, method string) *Request { | ||||
| 	return &Request{url, &req, map[string]string{}, map[string]string{}, defaultSetting, &resp, nil} | ||||
| } | ||||
|  | ||||
| // NewRequest returns *Request with specific method | ||||
| func NewRequest(url, method string) *Request { | ||||
| 	return newRequest(url, method) | ||||
| } | ||||
|  | ||||
| // Get returns *Request with GET method. | ||||
| func Get(url string) *Request { | ||||
| 	return newRequest(url, "GET") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user